Info
This question is closed. Reopen it to edit or answer.
How to read .txt files named as number?
1 view (last 30 days)
Show older comments
In one of my folders i have files like "Mech_01.txt", "Mech_02.txt", "Mech_03.txt"......... as well as files like "Mech_A.txt", "Mech_B.txt", "Mech_C.txt"..........
How can i read them separately using dir command?
Flame_speed__Exp_folder = '/home/ali/LFS/test/Test_rig';
Allfiles_Exp = dir(fullfile(Flame_speed__Exp_folder, '*Mech_*.txt'));
0 Comments
Answers (1)
madhan ravi
on 10 Jan 2019
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html - sprintf() does the job.
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!