MATLAB Answers

Cell containing double arrays to cell

5 views (last 30 days)
MiauMiau
MiauMiau on 1 Jul 2017
Commented: MiauMiau on 1 Jul 2017
Hi,
Having (for instance) a 1x3 cell which contains in each entry a double array of a different size. For instance:
cell(1) = 1x2 double cell(2) = 1x10 double cell(3) = 1x6 double
I want to convert any such cell (hence with somewhat generic code), to a cell with one row containing all the elements of the double arrays one after another (in this example it would be a 1x18 cell). How can I do that?

Accepted Answer

Walter Roberson
Walter Roberson on 1 Jul 2017
cell2mat(TheCell)
  3 Comments
MiauMiau
MiauMiau on 1 Jul 2017
The later, and your code works fine!:) Thank you

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by