Documentation

SetSimState

年代et the simulation state of the MATLAB S-function by restoring the SimState.

Required

No

Language

MATLAB

年代yntax

SetSimState(s, in)

Arguments

s

Instance of年代imulink.MSFcnRunTimeBlockclass representing the Level-2 MATLAB S-Function block.

in

The MATLAB®data of type returned byGetSimState.

Description

The Simulink®engine invokes this custom method at the beginning of a simulation of the model containing年代. Simulink sets the initial simulation state of the S-function to the SimState of the model.

Introduced in R2012b

Was this topic helpful?