Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

problem with working IF Block

Asked by Arun Badigannavar on 8 Feb 2013

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

0 Comments

Arun Badigannavar

Tags

Products

No products are associated with this question.

1 Answer

Answer by TAB on 8 Feb 2013
Accepted answer

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

1 Comment

TAB on 8 Feb 2013

This setting has no relation with block parameters. It is just to define behaviour of Outport when subsystem is disabled.

TAB

Contact us