MATLAB Answers

How do I get the default case(switch case) in auto code for if-else logic in Simulink model implementation?

13 views (last 30 days)
Venkata Narendra
Venkata Narendra on 25 Jul 2018
Answered: TAB on 26 Jul 2018
When I generated the code for my Simulink model which contain if-else logic(States when execution is resumed: Reset for both if and else actions), the code is generated with switch statement without default case. So when I do static analysis(polyspace code prover) it is giving 16.4 violation(default case is mandatory).

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!