View Full Version : How to read the name of a series of files in matlab?
bruna.reislf
18th August 2008, 07:46 PM
Amid the name of the files has two variables, numbers in ascending order and a flag q may be 1 or 2. Does anyone know how can I do?
sharief77
19th August 2008, 10:13 PM
I am not quite sure what you want to do
Try uigetfile on Matlab help section
bosomfriend
22nd August 2008, 07:55 PM
you can do it with a loop
ex: q_01.dat q_02.dat .. q_10.dat
for N=1:10
filename=['q_',num2str(N,'%0.2u'),'.dat'];
....
end
praveen
22nd August 2008, 09:31 PM
you can do it with a loop
ex: q_01.dat q_02.dat .. q_10.dat
for N=1:10
filename=['q_',num2str(N,'%0.2u'),'.dat'];
....
end
Hope you got the answer. :thumbsup:
Copyright ©20005 Oceanographers Net