How do I convert a 2d matrix to a 3d matrix?
3 次查看(过去 30 天)
显示 更早的评论
I have 5 matrix 2D.
However, how do I convert 5 2D matrices to 3D?
which generates a matrix to 24x24x5
0 个评论
回答(1 个)
Geoff Hayes
2022-6-6
result = cat(3, Ekc1, Ekc2, Ekc3, Ekc4, Ekc5);
Alternatively, rather then generating five equally sized matrices/variables,you could just insert them into a 24x24x5 array as each one is constructed...and then you would do away with these extra variables.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!