I am building a custom physical component using SimScape language. I have observed that for my custom component, the 'IF-ELSE' condition in the equations section is not evaluated correctly.
For example, for the code below, 'a' is never equal to 1 despite cond1 changes from false to true during the simulation.
if cond1 a=1;else a=0;end
Best Answer