octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #36732] interp1 does not check input for monot


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity
Date: Fri, 17 Aug 2012 17:09:48 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1

Follow-up Comment #14, bug #36732 (project octave):

Vivek,

Your explanation shows why strict monotonicity
is required.  The function should generate an
error.  Matlab does:

>> interp1 ([1,2,2,3,4],[0,1,4,2,1],[-1,1.5,2,2.5,3.5], 'linear', 'extrap'),
[-2,0.5,4,3,1.5]  
??? Error using ==> interp1 at 261
The values of X should be distinct.

But, I think that it would be better to say "strictly monotonic"
instead of "distinct."


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36732>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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