# HG changeset patch # User Kris Thielemans # Date 1221749184 14400 # Node ID 6c69f5cda32b989785d61ca3631b49a70dbd17d2 # Parent 37c1bdb9805cbed8f6bee2325b0b8f19c61b3056 For for extrapval in interpn diff -r 37c1bdb9805c -r 6c69f5cda32b doc/interpreter/contributors.in --- a/doc/interpreter/contributors.in Thu Sep 18 10:42:54 2008 -0400 +++ b/doc/interpreter/contributors.in Thu Sep 18 10:46:24 2008 -0400 @@ -196,6 +196,7 @@ Ariel Tankus Georg Thimm Duncan Temple Lang +Kris Thielemans Olaf Till Thomas Treichl Utkarsh Upadhyay diff -r 37c1bdb9805c -r 6c69f5cda32b scripts/ChangeLog --- a/scripts/ChangeLog Thu Sep 18 10:42:54 2008 -0400 +++ b/scripts/ChangeLog Thu Sep 18 10:46:24 2008 -0400 @@ -1,3 +1,8 @@ +2008-09-18 Kris Thielemans + + * general/interpn.m: Fixe for extrapval and documentation of + extrapval. + 2008-09-17 David Bateman * time/datetick.m: New function. diff -r 37c1bdb9805c -r 6c69f5cda32b scripts/general/interpn.m --- a/scripts/general/interpn.m Thu Sep 18 10:42:54 2008 -0400 +++ b/scripts/general/interpn.m Thu Sep 18 10:46:24 2008 -0400 @@ -55,9 +55,9 @@ ## ## The default method is 'linear'. ## -## If @var{extrap} is the string 'extrap', then extrapolate values beyond -## the endpoints. If @var{extrap} is a number, replace values beyond the -## endpoints with that number. If @var{extrap} is missing, assume NA. +## If @var{extrapval} is the scalar value, use it to replace the values +## beyond the endpoints with that number. If @var{extrapval} is missing, +## assume NA. ## @seealso{interp1, interp2, spline, ndgrid} ## @end deftypefn @@ -79,6 +79,7 @@ error ("extrapal is expected to be a numeric scalar"); endif method = varargin{end - 1}; + extrapval = varargin{end}; nargs = nargs - 2; endif