开发者

Cell array reshaping

开发者 https://www.devze.com 2023-03-23 08:15 出处:网络
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?

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

精彩评论

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

关注公众号