matlab - Hold the max value of a signal in Simulink for specified amount of time -


i have swinging pendulum in simulink , want valve stay open specific amount of time (say 2 sec or so) @ moment of maximum excitation. finding point of maximum excitation no problem, used if else block on derivative of angle (angular velocity) , if abs(angular velocity)<0.1 (or so) moment of maximum excitation reached. problem holding value high specific amount of time. in image specified signal have , required signal (paint, not exact):

input , required output signal

i have tried delay, delays bit. zero-order-hold didn't work either, missed signals , output became 0 (unknown phase , period of input signal, else might work) tried this, didn't work didn't have input signal of hold, have input signal shown in figure...

what block/subsystem should use create kind of signal?


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -