how do i store mutiple txt files into a 3d matrix
조회 수: 5 (최근 30일)
이전 댓글 표시
hi!,
im a highschool student whos very new to matlab and ive been assighned this task to store 3000 text files into one 3d matrix using the for loop command. I have no idea what im doing so any help is much appreciated!
댓글 수: 3
답변 (1개)
David Hill
2022년 8월 16일
Matrix=zeros(156,207,3000);
for i = 1:3000
Matrix(:,:,i)=readmatrix(['frames_' num2str(i-1) '.txt']);
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Downloads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!