This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Set initial state to be used for a specific simulation through SimulationInput object, in


in = in.setInitialState(xInitial)


in = in.setInitialState(xInitial) sets the initial state of a model to xInitial, a Simulink.SimState.ModelSimState object.

Input Arguments

collapse all

You can change the Initial State of a model by assigning it to a Simulink.op.ModelOperatingPoint object.

Introduced in R2017a