[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42686] interp1 returns NAs in simple cases wh
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #42686] interp1 returns NAs in simple cases where 0 expected |
Date: |
Sat, 05 Jul 2014 05:45:06 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?42686>
Summary: interp1 returns NAs in simple cases where 0 expected
Project: GNU Octave
Submitted by: None
Submitted on: Sat 05 Jul 2014 05:45:05 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Julius Smith
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: Mac OS
_______________________________________________________
Details:
To reproduce:
> interp1([1 2],[0 0],[1.1 2.1])
ans =
0 NA
> interp1([1 2],[0 0],[1.1 1.9])
ans =
0 0
This example was simplified from a much larger example for which Y started out
with zeros and then became nonzero. Perhaps something singular happens when
the leading given samples are zero? Note that it seems to be well behaved
when the interpolated indices are interior to the given indices.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42686>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42686] interp1 returns NAs in simple cases where 0 expected,
anonymous <=