help-octave
[Top][All Lists]
Advanced

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

Re: interp1 - bug


From: Søren Hauberg
Subject: Re: interp1 - bug
Date: Sat, 12 Sep 2009 13:48:28 +0200

lør, 12 09 2009 kl. 13:41 +0200, skrev Roberto Abuter:
> I guess it is just a difference in behavior between Matlab and Octave.
> one can always reshuffle (X,Y) in such a way X becames monotonic.

Is there any particular reason why we are not doing this in 'interp1'?
Couldn't just add

  [x, idx] = sort (x);
  y = y (idx);

to 'interp1' ?

Søren



reply via email to

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