Re: How to handle matrix resizing?



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
.



Relevant Pages

  • Re: How to handle matrix resizing?
    ... Since input data is generated by another program and the dimension is ... A, to accomodate them. ... Does the other program save all data to a file at once, or in parts and your Matlab program reads the parts? ...
    (comp.soft-sys.matlab)
  • How to handle matrix resizing?
    ... I define a matrix A. Then I store some data in A. ... Since input data is generated by another program and the dimension is ... A, to accomodate them. ...
    (comp.soft-sys.matlab)
  • Re: Left Join like link between Dimension and Fact table
    ... The idea with the unknown member is that, for each level of a hierarchy ... by 20 dimension tables. ... Let's say the fact table has a Sales measure. ...
    (microsoft.public.sqlserver.olap)
  • Re: how to compute distance metrics with multi dimensional data
    ... Lou Pecora wrote: ... > It generalizes to any dimension. ... formula for multi dimentional time series, ... ie 2d input data or i should've called it multivariate input data ...
    (sci.nonlinear)
  • How to create a clustered dimension in 2005 analysis services
    ... those in the other table that have a reason assigned(not all lates will ... property option to show those with no reason as unknown. ... I'd like my dimension to look like this: ... When I copied the sql from the successful processin of the ...
    (microsoft.public.sqlserver.olap)