Documentation

setInitialState

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

Syntax

in.setInitialState = xInitial

Description

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.SimState.ModelSimState object.

Introduced in R2017a

Was this topic helpful?