
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)
Show older comments
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!
2 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Sensor Models 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!