MATLAB Function
R2026bMATLAB function in Stateflow chart
Description
A MATLAB® function defines algorithms by using MATLAB code inside a Stateflow® chart. Call a MATLAB function in the actions of states and transitions to perform matrix-oriented calculations, data analysis, and visualization.
To add a MATLAB function to a chart:
In the Stateflow Editor, in the object palette, click the MATLAB Function icon
.Click a location in the chart canvas to place the MATLAB function.
Type a function signature in the format
y = f(x).
Properties
Version History
Introduced before R2006a