[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: |
Thu, 15 Jan 2015 14:42:44 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60 |
Follow-up Comment #2, bug #44002 (project octave):
It is not only a documentation error.
In Matlab, the default behavior is to extrapolate for values outside the
range. Here is the Matlab result:
>> 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 =
0.2796 0.8147 0.8973
In Octave the last command would result in a NA for the first answer.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44002>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/