Main Content

MATLAB Functions

Write matrix-oriented algorithms for data analysis and visualization

Incorporate MATLAB® code inside your Stateflow® charts. Implement algorithms that are more easily expressed by using MATLAB, such as matrix calculations and data analysis.

Topics

Troubleshooting

Debug a MATLAB Function in a Chart

Use breakpoints to debug MATLAB functions.

Initialize Persistent Variables in MATLAB Functions

Specialized semantics impact the way that a function initializes persistent data.