How to implement a for cycle to run a sequence of text files with the system command

Hi,
I would like to open a sequence of files by combining a for cycle and a list of files to open. How can I do that? I attach a sample list, that I plan to use as an input.
I thank you in advance.

回答 (1 件)

Voss
Voss 2023 年 7 月 17 日
Here's one way:
fid = fopen('system_TXT.txt');
while ~feof(fid)
file_name = fgetl(fid);
% process file file_name
end
fclose(fid);

カテゴリ

ヘルプ センター および File Exchange で Large Files and Big Data についてさらに検索

製品

リリース

R2022b

タグ

質問済み:

2023 年 7 月 17 日

コメント済み:

2023 年 8 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by