octave-maintainers
[Top][All Lists]
Advanced

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

Re: Interp1() usability bug


From: Michael D. Godfrey
Subject: Re: Interp1() usability bug
Date: Thu, 27 Jan 2011 14:15:34 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

On 01/27/2011 01:33 PM, fork wrote:
Michael Godfrey <godfrey <at> isl.stanford.edu> writes:

>       >> interp1((0:10), 2*(0:10), 11, 'extrap')
>       ??? Error using ==> interp1 at 344
>       Invalid method.
>        
>       >> interp1((0:10), 2*(0:9), 11, 'extrap')
>       ??? Error using ==> interp1 at 344
>       Invalid method.
For comparison sake (can you try on ML?):

2> interp1((0:10), 2*(0:9), 11, 'linear', 'extrap')
error: A(I): Index exceeds matrix dimension.
error: called from:
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\general\interp1.m at
line 208, column 19



>> version

ans =

7.9.0.529 (R2009b)

>> interp1((0:10), 2*(0:9), 11, 'linear', 'extrap')
??? Error using ==> interp1 at 125
X and Y must be of the same length.
 
>>
Note: this is r2009b

Michael



reply via email to

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