Extracting specific parts of an array
5 views (last 30 days)
Show older comments
I have two sets of data in a 1x500000 array (data_time and data_velocity). I want to extract the values from both arrays, where the data_velocity is <0.1 and >-0.1 to a separate array. The goal is to extract the data where there is near zero velocity, but keep the time values.
0 Comments
Answers (1)
Mischa Kim
on 5 Jan 2021
Edited: Mischa Kim
on 5 Jan 2021
Assuming your variable is called data_velocity use something like:
extractdata = data_velocity(data_velocity<0.1 & data_velocity>-0.1)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!