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

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

[Octave-bug-tracker] [bug #60967] interp1 returns wrong result when give


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60967] interp1 returns wrong result when given both a method and an extrapval
Date: Sun, 25 Jul 2021 14:29:36 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Edg/92.0.902.55

Update of bug #60967 (project octave):

                  Status:                    None => Ready For Test         

    _______________________________________________________

Follow-up Comment #1:

I pushed a change to the stable branch that should be fixing this issue here:
https://hg.savannah.gnu.org/hgweb/octave/rev/09b36aa7088a

For the time being, you could work around this by calling `interp1` with an
explicit argument `x`. E.g.:

result1 = interp1(1:2, [10, 6], [1, 1.5, 2], 'cubic')
result2 = interp1(1:2, [10, 6], [1, 1.5, 2], 'cubic', 0)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60967>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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