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.

Parameters

Share parameters with the MATLAB® workspace to avoid hard-coded values

To create easily modified constants within your Stateflow® chart, use parameters that have been defined in the MATLAB workspace or inherited from a Simulink® block parameter. When you use a masked subsystem with your Stateflow chart, you can change parameters before simulation.

Topics

Share Parameters with Simulink and the MATLAB Workspace

Define parameters to share constant data with Simulink models and the MATLAB base workspace.

Add Stateflow Data

Define the data that a chart stores internally in its own workspace.

Resolve Undefined Symbols in Your Chart

Detect and add undefined data, events, and messages.

Set Data Properties

Specify data properties by using the Property Inspector or the Model Explorer.

Create a Mask to Share Parameters with Simulink

Mask a Stateflow chart to customize appearance and initialize parameters.

Related Information

Create Block Masks (Simulink)