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!