フィルターのクリア

Change txt2mat reading directory in a loop

1 回表示 (過去 30 日間)
Jesmond
Jesmond 2012 年 12 月 26 日
Hi, I have 100 .csv files in the computer to be read, how do I make the script in MATLAB to read all the directory .csv files? The .csv files are named from DS0000 to DS0099.
I tried to make some code and it doesn't work...
for i=00:99;
data(i) = txt2mat('C:\Users\Jes\Desktop\Experiment\1412\DS00%i.csv');
end
Thanks.

採用された回答

Walter Roberson
Walter Roberson 2012 年 12 月 26 日
  1 件のコメント
Jesmond
Jesmond 2012 年 12 月 26 日
Thanks, the link you supplied has helped a lot. I have solved this problem.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by