How to load a txt file and save the workspace
7 ビュー (過去 30 日間)
古いコメントを表示
回答 (1 件)
Mathieu NOE
2023 年 9 月 22 日
you can create a structure D where all informations are stored (filenames and data)
D = dir('*.txt'); % D is a structure array
for k = 1:numel(D)
D(k).data = readmatrix(D(k).name);
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!