How can I find the intersection points of two vectors that do not (necessarily) contain the value at the intersection point?

6 views (last 30 days)
Hi,
I have a vector of angular velocity data sampled at 128Hz (and a corresponding time vector) and I am trying to find out how many times the velocity crosses a specific velocity threshold (e.g., +/-30 deg/s). Importantly, the vector of velocity data may not contain the exact value of the threshold (i.e., it may contain 29.5 and 31 degs/s but not 30 deg/s).
Additionally, I want to impose a minimum distance of 100ms (about 13 samples) between consecutive intersection points. The final objective is to then plot the intersection points onto the velocity as a function of time and obtain the number of times it crossed the threshold.
Thanks in advance for any answers!

Accepted Answer

KSSV
KSSV on 9 Apr 2020
  6 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!