Get one dimension of a single in a cell- how to do it?

1 view (last 30 days)
BN
BN on 26 Oct 2019
Edited: BN on 26 Oct 2019
I want to write a code to hold just the third dimension of this 2*1 cell. this 2*1 cell contains two 720*360*365 single, that I want to have only third dimension as a single array. I highlighted what I want in the picture.
thank youCapture.JPG
  5 Comments
Walter Roberson
Walter Roberson on 26 Oct 2019
If the question is how to automatically extract the cell entries into separate variables, such as numbered variables, then we would recommend firmly against doing that.
BN
BN on 26 Oct 2019
Edited: BN on 26 Oct 2019
Yes,
separate_variable = precip{1,1};
is right
thank you the cyclist and Walter, you are awesome, you solved my problem :)

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!