How to handle matrix resizing?
- From: Jerry <jerry.lou@xxxxxxxxxxxxx>
- Date: Thu, 9 Feb 2006 21:29:49 -0500
Hi,
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?
Jerry
.
- Follow-Ups:
- Re: How to handle matrix resizing?
- From: John D'Errico
- Re: How to handle matrix resizing?
- From: Jeroen
- Re: How to handle matrix resizing?
- Prev by Date: Re: Old commands
- Next by Date: putWorkspaceData causes errors
- Previous by thread: How to combine errors in MATLAB?
- Next by thread: Re: How to handle matrix resizing?
- Index(es):
Relevant Pages
|