Question
I would like to be able to pass structures to Stateflow charts in Simulink.
Expert Answer
Kshitij Singh
PhD Expert
Answered Aug 24, 2026
The ability to pass structures to Stateflow charts is available from Stateflow 6.5 (R2006b) .
To work around this issue for a previous version of Stateflow, use the Embedded MATLAB Function block and the ASSIGNIN and EVALIN functions to read structures into Stateflow from the base MATLAB workspace.
For an example on using structures in Stateflow 6.5 (R2006b), execute the following command in MATLAB:
web([docroot,'/toolbox/stateflow/ug/bquvixr.html'])
Have a different question? Ask here
Related simulink Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →