[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very slow reading of a 2D matirx

From: Bill Denney
Subject: Re: Very slow reading of a 2D matirx
Date: Wed, 19 Oct 2005 23:20:26 -0400 (EDT)

You didn't really choose the best method to load a matrix. A better method would be to clip off the first two and the last lines from your attached .m file and change the name to something like xx.txt then do

load xx.txt

The 180x180 variable will be loaded into the variable xx.

Also, you invoked zero as:


With that invocation, you're creating a 360 dimensional matrix with the dimensions 1x2x3x...x180x1x2x3x...x180. You meant to call it as

x = zeros(180);

or more explicitly as

x = zeros(180,180);

That is probably where most of your time is taken.


On Wed, 19 Oct 2005, Alireza wrote:


I have a moderately sized 2D array (180X180), that want to read into octave.
The reading is extremely slow. I have tried to create the array first, but
the speed is still the same.

I have tried this on various machines and octave versions, from the rusty to

Any thoughts and suggestions as to why this is and what needs to be done!


"During times of universal deceit, telling the truth becomes a
revolutionary act."
  -- George Orwell

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]