Info

此问题已关闭。 请重新打开它进行编辑或回答。

How can I find index from the cell array and then extract desired value from it.

1 次查看(过去 30 天)
can anybody help to find index from the cell array (attached) and then extract desired value from it. For example, I am looking for values (temp_glb) in between lon_glb[28 45], and lat_glb[40 49]. Thanks

回答(1 个)

Jeremy
Jeremy 2020-1-28
编辑:Jeremy 2020-1-28
Hi,
Normally this would be easy using cell2mat because it appears each entry of the cell is meant to be a 1x3 array. However, lat_glb(44) is a 1x4 array and lat_glb(45) is a 1x2 array. Are one of the numbers in cell 44's array meant to be in cell 45's array?
The same is true for lon_glb.

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by