Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to read .txt files named as number?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
madhan ravi
2019-1-10
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html - sprintf() does the job.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!