This question is closed. Reopen it to edit or answer.

How to end a single the second time a value is reached

1 view (last 30 days)
Sean Quisenberry
Sean Quisenberry on 11 Mar 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi all,
I have a resultant signal, and I am trying to figure out how to automate my code to end the signal after the second time it achieves a value less than X.
So, signal is going from 0 to 4.2volts (peak), then I want to end the signal once it is under 0.6v. I want to be able to get the numerical integration under the curve for my peak signal(which ranges from 0 to <0.6v).

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by