Can I pass structures to Stateflow charts in Simulink?

Illustration
Armando - 2020-09-18T10:29:00+00:00
Question: Can I pass structures to Stateflow charts in Simulink?

I would like to be able to pass structures to Stateflow charts in Simulink.

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

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'])


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!