필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Hugo
Hugo 2023년 7월 17일
댓글: Voss 2023년 8월 15일
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);

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by