MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Preallocation of cell arrays? 

Subject: Preallocation of cell arrays? From: the cyclist Date: 22 Sep, 2010 21:33:05 Message: 1 of 16 
For a long, long time I have had it stuck in the back of my head that for cell arrays, preallocation of memory was not important, because they need not be stored in contiguous memory. But I was nagged by the fact that MATLAB does give warnings about it when you don't. 
Subject: Preallocation of cell arrays? From: Walter Roberson Date: 22 Sep, 2010 21:39:02 Message: 2 of 16 
On 100922 04:33 PM, the cyclist wrote: 
"the cyclist" <thecyclist@gmail.com> wrote in message <i7dsmg$4r1$1@fred.mathworks.com>... 
Subject: Preallocation of cell arrays? From: Cris Luengo Date: 23 Sep, 2010 07:53:04 Message: 4 of 16 
"Sean " <sean.dewolski@nospamplease.umit.maine.edu> wrote in message <i7dtdj$lbf$1@fred.mathworks.com>... 
Subject: Preallocation of cell arrays? From: Oleg Komarov Date: 23 Sep, 2010 09:04:07 Message: 5 of 16 
I think Cris and Walter made it clear. 
Subject: Preallocation of cell arrays? From: Bruno Luong Date: 23 Sep, 2010 09:33:07 Message: 6 of 16 
"the cyclist" <thecyclist@gmail.com> wrote in message <i7dsmg$4r1$1@fred.mathworks.com>... 
"Oleg Komarov" <oleg.komarovRemove.this@hotmail.it> wrote in message <i7f566$3r7$1@fred.mathworks.com>... 
Subject: Preallocation of cell arrays? From: Bruno Luong Date: 23 Sep, 2010 10:30:31 Message: 8 of 16 
"Oleg Komarov" <oleg.komarovRemove.this@hotmail.it> wrote in message <i7f566$3r7$1@fred.mathworks.com>... 
Dear readers, 
Subject: Preallocation of cell arrays? From: the cyclist Date: 23 Sep, 2010 12:31:19 Message: 10 of 16 
Walter Roberson <roberson@hushmail.com> wrote in message <i7dt6a$2uq$1@canopus.cc.umanitoba.ca>... 
"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <i7fb79$1ih$1@fred.mathworks.com>... 
Subject: Preallocation of cell arrays? From: Jan Simon Date: 23 Sep, 2010 15:35:09 Message: 12 of 16 
Dear Matt J, 
"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <i7fs3c$kjt$1@fred.mathworks.com>... 
Subject: Preallocation of cell arrays? From: the cyclist Date: 23 Sep, 2010 16:11:08 Message: 14 of 16 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <i7f6si$lkm$1@fred.mathworks.com>... 
Subject: Preallocation of cell arrays? From: Jan Simon Date: 23 Sep, 2010 16:30:48 Message: 15 of 16 
Dear Matt, 
"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <i7fvbo$r4c$1@fred.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.