setInitialState

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

Description

in = in.setInitialState(xInitial) sets the initial state of a model to xInitial, a Simulink.op.ModelOperatingPoint 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