开发者

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{:});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜