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.

SetSimState

(Not recommended) Set the simulation state of the MATLAB S-function by restoring the SimState.

Note

SetSimState is not recommended. Use SetOperatingPoint instead.

Required

No

Language

MATLAB

Syntax

SetSimState(s, in)

Arguments

s

Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 MATLAB S-Function block.

in

The MATLAB® data of type returned by GetSimState.

Description

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

Introduced in R2012b