Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: concatenate cell array
Date: Wed, 1 Jul 2009 18:08:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <h2g8m1$e5k$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246471681 14516 172.30.248.38 (1 Jul 2009 18:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 1 Jul 2009 18:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1875128
Xref: news.mathworks.com comp.soft-sys.matlab:552109


Hi 
I would like to concatenate cell array in a loop

A = {}
for ...
     if ...
         concatenate A
      end
end

What is the most efficient way to do this?

p.s. I tried A = { A, {new cell array}  }, it did not work. 

Thanks
Diego