MATLAB Answers

0

Cell Array with different sizes

Asked by Jonas Haupt on 24 Jun 2019
Latest activity Answered by Jonas Haupt on 24 Jun 2019
Hi guys,
I have certain cell arrays with with the size of 1x73 cells.
Each cell have a minimum size of 12000x1 double. Goes up to over 30000.
Ich would like to read them seperately now in variables. Is there an option to do it, without doing it cell by cell?
Best regards
J

  0 Comments

Sign in to comment.

2 Answers

Answer by madhan ravi
on 24 Jun 2019
Edited by madhan ravi
on 24 Jun 2019
 Accepted Answer

"Ich would like to read them seperately now in variables."

  4 Comments

Show 1 older comment
madhan ravi
on 24 Jun 2019
For that you would have to make each cell have the same number of elements. One solution would be to pad zeros or nans at the end.
madhan ravi
on 24 Jun 2019
Jonas Haupt's answer moved here:
For that i use cellfun and padarray right?
madhan ravi
on 24 Jun 2019
Yes, one of the possible ways.

Sign in to comment.


Answer by Jonas Haupt on 24 Jun 2019

Okay I tried several things but it didnt work.
How can I do it, without making it cell by cell?
Thank you very much!

  0 Comments

Sign in to comment.