How do I get exact position of a fluctuation in a time series?

4 views (last 30 days)
Suppose I have a very long row vector, say, of size 1*n for n>10000. I plot the vector as a time series. The time series has some large fluctuations, and I want to locate the exact time when the first fluctuation occurs. Is there any Matlab function, or any simple way to do this?

Answers (1)

Image Analyst
Image Analyst on 25 Nov 2014
You can use find(). For example, to find the first index where your signal surpasses a value of 50, do
index = find(yourSignal >= 50, 1, 'first');
  4 Comments
Vic
Vic on 25 Nov 2014
I posted a more precise question, plz see if u can help. thx a lot.
Image Analyst
Image Analyst on 25 Nov 2014
I didn't notice any difference in the question. My answer stays the same.

Sign in to comment.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!