help-octave
[Top][All Lists]
Advanced

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

using interp1.m from Matlab in Octave?


From: Daniel Drucker
Subject: using interp1.m from Matlab in Octave?
Date: Tue, 8 May 2007 10:58:58 -0400

I'm trying to get interp1.m from Matlab to work in Octave. Could someone give me an idea why it fails? (It works in Matlab.)

octave:1> x=load timepoints.txt;
octave:2> y=1:length(x);
octave:3> i=min(x):range(x)/length(x)/2:max(x);
octave:4> yi=interp1(x,y,i);
octave(24383) malloc: *** vm_allocate(size=2147483648) failed (error code=3)
octave(24383) malloc: *** error: can't allocate region
octave(24383) malloc: *** set a breakpoint in szone_error to debug
error: memory exhausted -- trying to return to prompt
octave:4>

interp1.m is http://www.3e.org/private/interp1.m (from Matlab)
timepoints is http://www.3e.org/private/timepoints.txt


Daniel Drucker



reply via email to

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