help-octave
[Top][All Lists]
Advanced

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

Re: Error in `xcorr` (Signal package) "out of memory or dimension too la


From: Doug Stewart
Subject: Re: Error in `xcorr` (Signal package) "out of memory or dimension too large for Octave's index type"
Date: Wed, 7 Mar 2018 21:59:04 -0500



On Wed, Mar 7, 2018 at 8:22 PM, Fabcap77 <address@hidden> wrote:
I need to calculate the autocorrelation coefficients for a vector of 744
elements, but `xcorr` fails returning this error message:

   error: out of memory or dimension too large for Octave's index type
   error: called from:
   error:   /home/$user/octave/signal-1.3.2/xcorr.m at line 203, column 7

The behaviour can be reproduced with:

   var = stdnormal_rnd(744);
   [r, lg] = xcorr(var, length(var)/2-1);

Can nybody help to fix this problem?


It works for me but the answer is very big

size(r)
ans =

      743   553536

numel(r)
ans =  411277248 

that is  411,277,248 doubles stored in memory


--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------



--
DASCertificate for 206392


reply via email to

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