Converting a 2d matrix into a 3d matrix
2 次查看(过去 30 天)
显示 更早的评论
Hi, I have a matrix of 24 x 10 and would like to convert it into 4 x 6 x 10. The first column of the 'test.mat' will form 4 x 6, etc. I have tried the following code from :https://www.mathworks.com/matlabcentral/answers/137535-converting-2d-matrix-to-3d but I cant seems to get the result. Thank you for the help.
test1 = permute(reshape(test,4,10,6),[1 3 2]);
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!