How do I get exact position of a fluctuation in a time series?
4 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
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
Image Analyst
on 25 Nov 2014
I didn't notice any difference in the question. My answer stays the same.
See Also
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!