Prev: GUI - text box
Next: GUI - text box
From: Li on 29 May 2010 11:11 I have up to ten thousand txt data files with the file names: data_1, data_2, data_5, ... data_10,000. I am trying to use the following program to read these data: for i = 1:2000; File = ['data_' num2str(i) '.txt']; [X Y Z] = textread(File, '%f %f %f', 'headerlines', 1); .... end; The problem is that I have some files missing, such as data_3.txt, and data_4.txt. How can I get around this? Is there a Matlab function like 'isnan' to tell whether a file is available or not? Thank you.
From: Doug Schwarz on 29 May 2010 11:53 In article <htraqp$qe7$1(a)fred.mathworks.com>, "Li " <liqingjiang(a)gmail.com> wrote: > Is there a Matlab function like > 'isnan' to tell whether a file is available or not? exist(filename,'file') -- Doug Schwarz dmschwarz&ieee,org Make obvious changes to get real email address.
|
Pages: 1 Prev: GUI - text box Next: GUI - text box |