If statement stateflow (Action language C vs. MATLAB)
18 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Jagadeesh
2022-9-28
Hey Frank,
Conditional and loop control statements are not supported in State Actions with C as the Action Language. You can find this and other functional differences between the action languages in the table ”Compare Functionality of Action Languages” here: https://www.mathworks.com/help/stateflow/ug/differences-between-matlab-and-stateflow-action-language.html
In order to achieve conditional and loop patterns in Stateflow, please use Graphical Functions instead. For more information on implementing Graphical Functions, you may refer to: https://www.mathworks.com/help/stateflow/ug/graphical-functions-for-reusing-logic-patterns-and-iterative-loops.html
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!