# HG changeset patch # User Gunnar Farneback # Date 1287413637 -7200 # Node ID 78a6016875ed9686f1ef26933472cf733f378d0b # Parent 811b51cdddce443d0c54922f752b2b95bb34ed00 general/interp2.m: Fix input checks for cubic interpolation (bug #31352, part 1). diff -r 811b51cdddce -r 78a6016875ed scripts/ChangeLog --- a/scripts/ChangeLog Mon Oct 18 19:32:36 2010 +0800 +++ b/scripts/ChangeLog Mon Oct 18 16:53:57 2010 +0200 @@ -1,3 +1,8 @@ +2010-10-18 Gunnar Farneback + + * general/interp2.m: Fix input checks for cubic + interpolation (bug #31352, part 1). + 2010-10-18 Ben Abbott * plot/print.m: Add examples to the docstring. diff -r 811b51cdddce -r 78a6016875ed scripts/general/interp2.m --- a/scripts/general/interp2.m Mon Oct 18 19:32:36 2010 +0800 +++ b/scripts/general/interp2.m Mon Oct 18 16:53:57 2010 +0200 @@ -326,7 +326,7 @@ if (isvector (X) && isvector (Y)) X = X(:).'; Y = Y(:); - if (!isequal ([length(X), length(Y)], size(Z))) + if (!isequal ([length(Y), length(X)], size(Z))) error ("interp2: X and Y size must match Z dimensions"); endif elseif (!size_equal (X, Y))