Using Conditions from One Array To Select Data from Another
显示 更早的评论
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!