

- Open Property Inspector
- Open Symbols Pane
- Click on “y” in the Symbols Pane
- In the Property Inspector, set the “Type” for y to “Bus: myBus” from the drop-down menu.
- In the Symbols Pane, set “y” as “Parameter Data” by clicking on the box left of “y”.
How do I utilize the data stored in a MATLAB structure array (i.e. "struct") inside a Stateflow chart? I have a MATLAB struct that defined in a separate script or a Simulink callback function. The MATLAB struct contains several fields including an array and I want to access the array elements from within the struct using the dot (.) operator in a Stateflow chart.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!