Package: Simulink.op
Access simulation operating point data
The Simulink.op.ModelOperatingPoint
class contains all of the
information associated with an operating point of a simulation, including the logged states,
the time of the snapshot, and the start time of the simulation. To access this data for a
specific block in the model, use the get
method or the
loggedStates
property.
Use the sim
command with
set_param
. Set the SaveOperatingPoint
parameter
to 'on'
.
fuelsys set_param('fuelsys','SaveFinalState','on','FinalStateName',... 'myOperPoint','SaveOperatingPoint','on'); simOut = sim('fuelsys','StopTime','10') myOperPoint = simOut.myOperPoint
Note
Before you save the operating point, it is recommended that you disable the Block Reduction parameter in Configuration Settings > Simulation Target > Advanced Parameters.