Hi Qu Wie,
Please refer the following documentation link, https://www.mathworks.com/help/stateflow/ug/access-data-store-memory-from-a-chart.html
I hope this helps.
-Sindhu
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!