I am having trouble regarding value holding and reset with a simulink function. When a condition occurs I would like to have that value held until an external reset occurs.
z = 6;
elseif reset ==1
z = 0;
I would like to trigger a value, hold, use an external signal to reset, and then allow to trigger again. Is there a block that can do this?