num2cell question regarding condensing
Show older comments
Hello all,
I have a simple question, but I am having trouble finding the most simple way to accomplish this task.
Let's say A is a 10x25 double. I am trying to use "num2cell" to create a 25x1 cell that contains one column of 25 1x10 doubles.
So far I have tried
C = num2cell(A,25)
Unfortunately, that just leaves me with a 10*25 cell. Does anyone know how to correct this?
Thank you.
Accepted Answer
More Answers (1)
C=mat2cell(A,[10],ones(25,1))
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!