help-octave
[Top][All Lists]
Advanced

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

Re: Error message abt memory


From: John W. Eaton
Subject: Re: Error message abt memory
Date: Wed, 11 Jun 2008 22:56:30 -0400

On 11-Jun-2008, Jordi GutiƩrrez Hermoso wrote:

| into an equivalent while loop. As I understand it, for 1 = 1:55*10^6
| actually creates a vector of that size.

No, ranges in Octave are stored as start, end, and increment:

  octave:1> x = 1:55*10^6;
  octave:2> whos x

  *** local user variables:

    Prot Name        Size                     Bytes  Class
    ==== ====        ====                     =====  ===== 
     rwd x           1x55000000                  24  double

  Total is 55000000 elements using 24 bytes

However, many operations on them will turn them into vectors.

jwe



reply via email to

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