Mercurial > hg > octave-nkf
changeset 11108:78a6016875ed
general/interp2.m: Fix input checks for cubic interpolation (bug #31352, part 1).
author | Gunnar Farneback <gunnar@lysator.liu.se> |
---|---|
date | Mon, 18 Oct 2010 16:53:57 +0200 |
parents | 811b51cdddce |
children | 41d18f6342f9 |
files | scripts/ChangeLog scripts/general/interp2.m |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-10-18 Gunnar Farneback <gunnar@lysator.liu.se> + + * general/interp2.m: Fix input checks for cubic + interpolation (bug #31352, part 1). + 2010-10-18 Ben Abbott <bpabbott@mac.com> * plot/print.m: Add examples to the docstring.
--- a/scripts/general/interp2.m +++ b/scripts/general/interp2.m @@ -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))