MATLAB: Problem with working IF Block

simulink

In if block subsystem,,,wen a control goes to else condition,,,my if condition subsystem will be reset to '0',,but i dont want it,,,i want to keep hold the last value of if control subsystem,,,anybody know how to make if control subsytem to hold the last calculated value

Best Answer

Double click output ports in your if action subsystem and set Output when disabled property to held.
Related Question