Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Start

Initialize the state vectors of this MATLAB S-function

Required

No

Language

MATLAB

Syntax

Start(s)

Arguments

s

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

Description

The Simulink® engine invokes this optional method at the beginning of a simulation. The method performs initialization activities that this S-function requires only once, such as allocating memory and setting up user data. Use InitializeConditions to initialize state values

If your S-function resides in an enabled subsystem and needs to reinitialize its states whenever the subsystem is enabled, use InitializeConditions to initialize the state values, instead of Start.

Use the properties of Simulink.RunTimeBlock to get the states.

Example

See msfcn_varpulse.m for an example of how to use this function.

Introduced in R2012b

Was this topic helpful?