How do I find the oscillation of these wobbles on matlab?

9 views (last 30 days)

Answers (1)

Star Strider
Star Strider on 2 Jun 2020
I am not certain what you want.
If you want to find the predominant frequency, the best way is likely to use the fft function.
If you want to find the individual peak and trough locations, first use the detrend function to remove the linear trend, then findpeaks on the original vector to locate the peaks and the negative of the vector to locate the troughs. The islocalmax and islocalmin functions can also be used to find the peaks and troughs, respectively.
  7 Comments
Image Analyst
Image Analyst on 2 Jun 2020
What did your textbook or instructor talk about recently? I bet you're supposed to use whatever method they discussed.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!