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 valid initial state.

Input Arguments

collapse all

You can change the Initial State of a model by assigning it to a Simulink.op.ModelOperatingPoint object, a structure or a structure with time format.

Introduced in R2017a