how do i store mutiple txt files into a 3d matrix
2 ビュー (過去 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!
回答 (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 で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!