open and read a txt file

3 ビュー (過去 30 日間)
Rica
Rica 2013 年 1 月 29 日
Hi!
%
for i=20:80
fileID = fopen(['Data_' num2str(i) '.txt']);
data{i,1} = textscan(fileID, '%s %s %s %d %d %d %d %f %f ');
fclose(fileID);
...
....
end
how could i skip reading some files. for exwmple i=22 and i=79? thank you

採用された回答

Thorsten
Thorsten 2013 年 1 月 29 日
for i = setdiff(20:80, [22 79])
  1 件のコメント
Rica
Rica 2013 年 1 月 29 日
great!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLow-Level File I/O についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by