newspec = addoutputspec(opspec,'scdspeed/rad//s to rpm',1);
Specify a known value of 2000 rpm for the output specification.
newspec.Outputs(1).Known = 1;
newspec.Outputs(1).y = 2000;
View the updated operating point specification.
newspec
Operating point specification for the Model scdspeed.
(Time-Varying Components Evaluated at time t=0)
States:
----------
(1.) scdspeed/Throttle & Manifold/Intake Manifold/p0 = 0.543 bar
spec: dx = 0, initial guess: 0.543
(2.) scdspeed/Vehicle Dynamics/w = T//J w0 = 209 rad//s
spec: dx = 0, initial guess: 209
Inputs:
----------
(1.) scdspeed/Throttle perturbation
initial guess: 0
Outputs:
----------
(1.) scdspeed/rad//s to rpm
spec: y = 2e+03
Add Output Specification to Multiple Operating Point Specification Objects
Open the Simulink model.
sys = 'scdspeed';
open_system(sys)
15 Alphabetical List