How to convert cell array to 3D array. I want to convert cell to mat
Show older comments
pu
pu(:,:,1) =
[5x9 double]
pu(:,:,2) =
[4x8 double]
pu(:,:,3) =
[4x7 double]
pu(:,:,4) =
[3x6 double]
du
du(:,:,1) =
[1x9 double]
du(:,:,2) =
[1x8 double]
du(:,:,3) =
[1x7 double]
du(:,:,4) =
[1x6 double]
cell2mat(pu,[],[])
Error using cell2mat
Too many input arguments.
du(:,:,:) = du{:,:,:}
Conversion to cell from double is
not possible.
3 Comments
Walter Roberson
on 28 Jan 2016
What would be the desired output size for converting pu?
For du we could speculate that you wanted to get out something that is 1 x 1 x (9+8+7+6), but there is no obvious conversion for pu
Triveni
on 28 Jan 2016
Andrei Bobrov
on 28 Jan 2016
use
pu{:}
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!