Converting three-dimensional matrixes
이전 댓글 표시
In the folder I have 100 files. Each contains of four matrixes (three-2D and one-3D size 71 * 73 * 13). I need to obtain thirteen 3D matrixes (71*73*100). Each must consist of the same number of floor from input 3D matrixes. How can I do it automatically?
답변 (1개)
Using a loop, read each 3D array into a cell, C{i}. Then concatenate to form a four dimensional array and permute
A=permute( cat(4,C{:}) ,[1 2 4 3] );
The resulting A will be 71x73x100x13, which is an equivalent or better data organization than 13 separate matrices.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!