How do i create a 3d matrix?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have 26 .dat files and 26 .mat files with both the same data. Each file contains a matrix with 32 rows and 32 columns, so 32x32. How do I create a new file with a 3d matrix, with the files in the 3rd dimension, 32x32x26?
댓글 수: 0
채택된 답변
Walter Roberson
2013년 5월 16일
YourMatrix = zeros(32, 32, 26);
for K = 1 : 26
....
YourMatrix(:,:,K) = input data for this matrix
end
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!