I have a MATLAB Function Block in my model. From the body of a sub-function in that MATLAB Function Block, an entire else-branch is missing in the C code using R2019b, although there is no reason why the if-branch should always be true.
if( (my_var >= uint16(0)) && (my_var <= uint16(100)) ) %code here
else %code here - completely missing in C code
endend
Best Answer