Mercurial > hg > octave-lyh
diff scripts/plot/surface.m @ 7292:5e90111a28b3
[project @ 2007-12-11 18:13:34 by jwe]
author | jwe |
---|---|
date | Tue, 11 Dec 2007 18:15:06 +0000 |
parents | a239de118fa6 |
children | d45fc511fc5d |
line wrap: on
line diff
--- a/scripts/plot/surface.m +++ b/scripts/plot/surface.m @@ -92,7 +92,7 @@ error ("surface: rows (z) must be the same as length (y) and columns (z) must be the same as length (x)"); endif elseif (ismatrix (x) && ismatrix (y) && ismatrix (z)) - if (! (size_equal (x, y) && size_equal (x, z))) + if (! size_equal (x, y, z)) error ("surface: x, y, and z must have same dimensions"); endif else @@ -111,7 +111,7 @@ error ("surface: rows (z) must be the same as length (y) and columns (z) must be the same as length (x)"); endif elseif (ismatrix (x) && ismatrix (y) && ismatrix (z)) - if (! (size_equal (x, y) && size_equal (x, z))) + if (! size_equal (x, y, z)) error ("surface: x, y, and z must have same dimensions"); endif else