changeset 13161:6b6d0e51bd2f stable

scripts/general/interpn.m: fix(m)==m is faster than round(m)==m
author Ben Abbott <bpabbott@mac.com>
date Mon, 19 Sep 2011 08:15:30 -0400
parents 6abc581bf2c9
children 9efb676b34ac
files scripts/general/interpn.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/general/interpn.m	Mon Sep 19 00:56:05 2011 -0500
+++ b/scripts/general/interpn.m	Mon Sep 19 08:15:30 2011 -0400
@@ -92,7 +92,7 @@
     if (nargs == 2)
       if (ischar (varargin{2}))
         method = varargin{2};
-      elseif (isnumeric (m) && isscalar (m) && round (m) == m)
+      elseif (isnumeric (m) && isscalar (m) && fix (m) == m)
         m = varargin{2};
       else
         print_usage ();