help-octave
[Top][All Lists]
Advanced

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

Re: invalid range


From: Michael Goffioul
Subject: Re: invalid range
Date: Mon, 1 Jul 2013 10:16:43 -0400

On Mon, Jul 1, 2013 at 10:13 AM, Ben Abbott <address@hidden> wrote:
On Jul 1, 2013, at 9:33 PM, asha g wrote:

> > I get this error even when I do the following :
> >
> >
> > octave3.2:1> niter = 1: 15360000000
> > error: invalid range
> >
> >
> > Asha G
>
> You're asking Octave to create a vector with 15.36 G elements.  You'll need 64bit addressing for that.
>
> How can I do that ?
> asha G

You'll need to build octave, and include the option "--enable-64" when you run configure.

Before doing that, do have you enough RAM for a double vector of length = 15.36G?  You'll need 122.88 GBytes of RAM just for your vector.

A "while" loop might be more appropriate:

i = 1;
while (i <= 15360000000)
  % do something
  i = i+1;
end

Michael.


reply via email to

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