Oscillation about one point
2 views (last 30 days)
Show older comments
I have an array of values I get from a sensor and the values undergo damped oscillated after the first few seconds. I want to find the point across which it oscillates. Can someone help me out?
0 Comments
Answers (1)
Rik
on 5 Jun 2021
It might be enough to use mean on the second half of your vector. Sometimes a simple solution will already do the trick.
The alternative would be to fit a function to your data, or to do a Fourier transform and keep only the low frequencies.
4 Comments
Walter Roberson
on 5 Jun 2021
A sample plot would help, especially with a note about significant differences that might be detected before the damped oscillations.
See Also
Categories
Find more on Logical 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!