Re: How to handle matrix resizing?
- From: "John D'Errico" <woodchips@xxxxxxxxxxxxxxxx>
- Date: Fri, 10 Feb 2006 06:41:08 -0500
Jerry wrote:
In my program, I define a matrix A. Then I store some data in A.
Since input data is generated by another program and the dimension
is
unknown, normally I define A as large as possible, say
A(10000,10000), to accomodate them. Occsionally the dimension of
the
data exceeds 10000. Although Matlab can extend the dimension of A
automatically to accomodate the data, it is very very slow. But if
A
is defined as very large martix from scratch, the program will take
much more time to finish. Any one can advise me how to solve the
problem?
I'll argue that you should rethink how you deal
with this data. Use a cell array if possible,
or a sparse matrix.
At the very least, read through this:
<http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9060&objectType=FILE>
HTH,
John D'Errico
.
- References:
- How to handle matrix resizing?
- From: Jerry
- How to handle matrix resizing?
- Prev by Date: Matlab Wavelet Toolbox and Multiresolution Analysi
- Next by Date: Calling my own matlab function from Excel
- Previous by thread: Re: How to handle matrix resizing?
- Next by thread: putWorkspaceData causes errors
- Index(es):
Relevant Pages
|