'if' instead of a 'switch' when auto code generation
조회 수: 5 (최근 30일)
이전 댓글 표시
Is there a way to make the transition in Stateflow in a Simulink model appear as an 'if' instead of a 'switch' when auto code generation?
About the criteria for 'swich' and 'if' .
Also, is there a way to set the 'Switch' or the 'If' through the Embedded Coder configuration?
댓글 수: 0
답변 (1개)
Udit06
2024년 7월 5일
You can refer to the "ConvertIfToSwitch" configuration parameter of "coder.EmbeddedCodeConfig" object to control the generation of the "switch" and "if" statements. Please refer to the following MathWorks documentation for more details.
I hope this helps.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!