[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
preallocating memory for cell arrays
From: |
E. Joshua Rigler |
Subject: |
preallocating memory for cell arrays |
Date: |
Fri, 05 Nov 2004 10:26:25 -0700 |
First, is there any way store a "time series" of structures other than
in a cell array?
Second, since I believe the answer to question #1 is "no", how would one
go about preallocating a cell array to hold a predetermined number of
similar structures. I'm sure the first answer most will think of is
"duh, use the cell function silly". As you might suspect after a
moment's pause, however, I am most interested in how to preallocate the
memory at the beginning of a long loop (or exit with a insufficient
memory error if necessary). I can't begin to imagine how "cell(x,y)"
might figure out how much memory I intend to use all by itself.
Thanks in advance.
-EJR
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- preallocating memory for cell arrays,
E. Joshua Rigler <=