MATLAB Answers

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

1 view (last 30 days)
Farshid Daryabor
Farshid Daryabor on 28 Jan 2020
Edited: Jeremy Marcyoniak on 28 Jan 2020
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

  0 Comments

Sign in to comment.

Answers (1)

Jeremy Marcyoniak
Jeremy Marcyoniak on 28 Jan 2020
Edited: Jeremy Marcyoniak on 28 Jan 2020
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.

  0 Comments

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!