changeset 13150:621108cf81d1 stable

scripts/general/interp3.m: Fix bug #30295. Trivial fix to properly pass input args to interpn().
author Ben Abbott <bpabbott@mac.com>
date Sat, 17 Sep 2011 16:02:28 -0400
parents ab17591254fc
children e173fda06fca
files scripts/general/interp3.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/general/interp3.m	Sat Sep 17 15:14:08 2011 -0400
+++ b/scripts/general/interp3.m	Sat Sep 17 16:02:28 2011 -0400
@@ -91,7 +91,7 @@
     if (ndims (v) != 3)
       error ("interp3: expect 3-dimensional array of values");
     endif
-    x = varargin (2:4);
+    x = varargin (2:end);
     if (any (! cellfun (@isvector, x)))
       for i = 2 : 3
         if (! size_equal (x{1}, x{i}))