MATLAB Answers

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

1 view (last 30 days)
Behzad Navidi
Behzad Navidi on 26 Oct 2019
Edited: Behzad Navidi 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

Show 2 older comments
Walter Roberson
Walter Roberson on 26 Oct 2019
Assign it to a variable?
separate_variable = precip{1,1};
???
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.
Behzad Navidi
Behzad Navidi 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)

Sign in to answer this question.