Simulink.op.ModelOperatingPoint class

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.


expand all

Description of the saved operating point object, specified as a character vector. By default, Simulink® generates a character vector based on your model name.

Continuous and discrete states of the block that depend on the SaveFormatsettings of the model.

If specified as a Dataset format, you cannot assign a structure or a Simulink.SimulationData.Dataset object with a different number of elements than that of the Dataset object used for loggedStates.

If specified as a Structure format, you cannot assign a Dataset object.

Time at which Simulink takes a snapshot of the complete simulation operating point.

This data is read-only.

Time at which simulation of the model starts.

This data is read-only.


expand all


Save and Restore an Operating Point

Use the sim command with set_param. Set the SaveOperatingPoint parameter to 'on'.

simOut = sim('fuelsys','StopTime','10')
myOperPoint = simOut.myOperPoint


Before you save the operating point, it is recommended that you disable the Block Reduction parameter in Configuration Settings > Simulation Target > Advanced Parameters.

Introduced in R2019a