Can I call a Matlab function from the workspace in Stateflow?
2 views (last 30 days)
Show older comments
Liqun Wu on 19 Aug 2021
Answered: Jorge Calvo on 5 Oct 2021
It does not give compilation error, but seems the function is not really excuted.
I am using 2020a.
Jorge Calvo on 5 Oct 2021
You can call MATLAB functions from the actions of any state or transition or from other functions. For more information, see https://www.mathworks.com/help/stateflow/ug/matlab-functions-in-a-chart.html.
Find more on Complex Logic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!