Converting 2D cell array to 3D matrix
显示 更早的评论
I have a cell that is [8x454] with each element in the cell containing a [900x1] matrix. I would like to convert this cell into a 3 dimensional matrix of size [8x454x900]. Ive tried some things including reshape, cat and permute but can never seem to get it right. Any help would be greatly appreciated!
采纳的回答
更多回答(1 个)
Walter Roberson
2023-6-9
0 个投票
cell2mat(reshape(YourCell, 1, 1,[]))
类别
在 帮助中心 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!