MATLAB: Simulink

duplicate postsimulink

Hello every body, How can I get the time for 2D signal when the amplitude of the signal met certain condition(s) in simulink ,where the dimentions are: one is the amplitude and the other is the time

Best Answer

This question is quite similar to your earlier question that I answered here: http://www.mathworks.com/matlabcentral/answers/28577-simulink
You just need to use the "Compare to Constant" block (or any other combination of math blocks as per your conditions) instead of the MinMax Running block, and switch the Triggered Subsystem for an Enabled Subsystem - the subsystem must only be enabled when the "Compare to Constant" block returns a true value.