[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44002] The "extrap" option does not work in i
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #44002] The "extrap" option does not work in interp3 function. |
Date: |
Wed, 14 Jan 2015 13:18:50 +0000 |
User-agent: |
Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.17 |
URL:
<http://savannah.gnu.org/bugs/?44002>
Summary: The "extrap" option does not work in interp3
function.
Project: GNU Octave
Submitted by: None
Submitted on: Wed 14 Jan 2015 01:18:49 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: Edwin de Koning
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.2
Operating System: Microsoft Windows
_______________________________________________________
Details:
The interp3 function searches for values in a pre-defined list. It has an
option to extrapolate the values outside of this list (this is actually the
default Matlab behaviour). However, when this option is used, an error is
given.
Example:
>> X=[0,0.5,1]; Y=X; Z=X;
>> V=rand(3,3,3);
>> x=[-0.1,0,0.1]; y=x; z=x;
>> interp3(X,Y,Z,V,x,y,z,"spline")
ans =
NA
0.26611
0.26838
(In this case, the default Octave behaviour is to return an "NA" for every
outlier. However, I would like to extrapolate the values via the "extrap"
option).
>> interp3(X,Y,Z,V,x,y,z,"spline","extrap")
error: interp3: wrong number or incorrectly formatted input arguments
error: called from:
error: C:\Octave\Octave-3.8.2\share\octave\3.8.2\m\general\interp3.m a
t line 134, column 5
>>
Octave does not accept the "extrap" option in the interp3 function.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44002>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44002] The "extrap" option does not work in interp3 function.,
anonymous <=