Path: news.mathworks.com!not-for-mail
From: "Xiao LI" <clz1978@163.com>
Newsgroups: comp.soft-sys.matlab
Subject: dir find no files ?
Date: Sat, 7 Nov 2009 01:29:04 +0000 (UTC)
Organization: &#28165;&#21326;&#22823;&#23398;
Lines: 2
Message-ID: <hd2ih0$47i$1@fred.mathworks.com>
Reply-To: "Xiao LI" <clz1978@163.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257557344 4338 172.30.248.35 (7 Nov 2009 01:29:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 7 Nov 2009 01:29:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 885902
Xref: news.mathworks.com comp.soft-sys.matlab:583166


I used the function "dir" to get all the file names within a certain directory in a loop.
The directory is changing in the loop, but the files in each directory are same. What is weird is that the "dir" find no files in one of the directories while acturally there are several files in it. Then I check the directory independently(not in a loop) and the "dir" find those files. I don't know why. The memory full ?