Mercurial > hg > octave-lyh
changeset 8116:6c69f5cda32b
For for extrapval in interpn
author | Kris Thielemans |
---|---|
date | Thu, 18 Sep 2008 10:46:24 -0400 |
parents | 37c1bdb9805c |
children | 40aa36406a94 |
files | doc/interpreter/contributors.in scripts/ChangeLog scripts/general/interpn.m |
diffstat | 3 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/contributors.in +++ b/doc/interpreter/contributors.in @@ -196,6 +196,7 @@ Ariel Tankus Georg Thimm Duncan Temple Lang +Kris Thielemans Olaf Till Thomas Treichl Utkarsh Upadhyay
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2008-09-18 Kris Thielemans <kris.thielemans@csc.mrc.ac.uk> + + * general/interpn.m: Fixe for extrapval and documentation of + extrapval. + 2008-09-17 David Bateman <dbateman@free.fr> * time/datetick.m: New function.
--- 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