Using Conditions from One Array To Select Data from Another
Show older comments
I have an array that stores generated hurricane data for hundreds of years with column 1 as the year, column 2 as the latitude, and column 3 as the longitude. I have another array that has a specific selection of years that I want to pull the data from e.g. 857, 865, 890, etc. How do I set up the code to do that? I have tried quite a few different ways and I am always getting the "Arrays have incompatible sizes for this operation." error.
idx=find(comyearlatlong==year_weak_elnino)
I have tried looking into the documentation but I'm just not understanding it well enough to brute force it. I've attached the two files I'm using.
Accepted Answer
More Answers (0)
Categories
Find more on Cell Arrays 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!