Can I pass structures to Stateflow charts in Simulink?

A
Armando · Sep 18, 2020 · 2K views
Question
I would like to be able to pass structures to Stateflow charts in Simulink.
Expert Answer
Profile picture of Kshitij Singh
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

Get a Free Consultation or a Sample Assignment Review!