How to index one array with the index of another array that meets a certain condition
Show older comments
I have two arrays that correspond to variables of a cloud. One is cloud type and the other is effective radius of the cloud droplet.
I want to find the indexes in the cloud type array where cloud type == 8 and then index my cloud droplet radius array to only show the values in the specific index where cloud type == 8. Can anyone help with this?
ex:
cloud_type = [0 0 6 8 8 5 1 8 2 2 8]
radius = [20 13 14 25 30 10 5 27 13 14 25]
out = [25 30 27 25]
Accepted Answer
More Answers (0)
Categories
Find more on Process Point Clouds 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!