Mercurial > hg > octave-nkf
diff scripts/general/interpn.m @ 8116:6c69f5cda32b
For for extrapval in interpn
author | Kris Thielemans |
---|---|
date | Thu, 18 Sep 2008 10:46:24 -0400 |
parents | 4fbaba9abec1 |
children | fa78cb8d8a5c |
line wrap: on
line diff
--- a/scripts/general/interpn.m +++ b/scripts/general/interpn.m @@ -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