[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31780] interp1 behaviour differs from matlab
From: |
Richard Crozier |
Subject: |
[Octave-bug-tracker] [bug #31780] interp1 behaviour differs from matlab when using 'spline' option |
Date: |
Sat, 04 Dec 2010 13:12:42 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729; .NET4.0E) |
URL:
<http://savannah.gnu.org/bugs/?31780>
Summary: interp1 behaviour differs from matlab when using
'spline' option
Project: GNU Octave
Submitted by: crobar
Submitted on: Sat Dec 4 13:12:42 2010
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.3
Operating System: Microsoft Windows
_______________________________________________________
Details:
When calling inter1 with the 'spline' method when supplying only two input
points octave returns an error while matlab returns a linear interpolation,
e.g.
x = [1, 2];
y = [2, 3];
xi = 1.3;
interp1(x, y, xi, 'spline')
in octave returns
error: spline: requires at least 3 points
but in matlab R2008a returns
ans =
2.3
Apologies if this has already been fixed.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31780>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31780] interp1 behaviour differs from matlab when using 'spline' option,
Richard Crozier <=