Cell array reshaping
If I have a 20x1 cell matrix where each cell is a 1x50 cell matrix,开发者_高级运维 what would be the best way to form a 20x50 cell matrix?
Thanks!
If your cell array is stored in the variable cellArray
, you can use the function VERTCAT like so:
cellMatrix = vertcat(cellArray{:});
精彩评论