MATLAB: I have implemented if else structure in stateflow. But I keep getting warning “transition has an action with no side effect” for the action transition for the if and else part. What does this mean

if statementMATLABstateflowwarning

How to resolve such a warning?

Best Answer

Inside {} should be action statements, such as assignments, e.g. action=20;
action==20 is a condition.
Pay attention to the difference between "=" and "==".