Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Combine variable length vectors into one vector
Date: Fri, 17 Aug 2012 20:33:14 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 4
Message-ID: <k0m9qa$53f$1@newscl01ah.mathworks.com>
References: <k0c1vj$2h3$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1345235594 5231 172.30.248.35 (17 Aug 2012 20:33:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 17 Aug 2012 20:33:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3536503
Xref: news.mathworks.com comp.soft-sys.matlab:776704

What I was doing:
Use a for loop to store results of dir() in a cell array, N. Then, I would use a second for for loop to access the files in the cell array N.

I've decided to just use the files directly from the results of dir() as you both said. It is much easier and I don't have to build up a cell array.