Mercurial > hg > octave-terminal
changeset 1611:b1b68110d125
[project @ 1995-11-03 06:38:41 by jwe]
author | jwe |
---|---|
date | Fri, 03 Nov 1995 06:38:41 +0000 |
parents | 26a096727e89 |
children | 004842061dcf |
files | scripts/plot/mesh.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/mesh.m +++ b/scripts/plot/mesh.m @@ -40,7 +40,7 @@ if (is_vector (x) && is_vector (y) && is_matrix (z)) xlen = length (x); ylen = length (y); - if (xlen == rows (z) && ylen == columns (z)) + if (ylen == rows (z) && xlen == columns (z)) if (rows (x) == 1) x = x'; endif @@ -61,8 +61,8 @@ set view 60, 30, 1, 1; gsplot (zz); else - msg = "mesh: rows (z) must be the same as length (x) and"; - msg = sprintf ("%s\ncolumns (z) must be the same as length (y)", msg); + msg = "mesh: rows (z) must be the same as length (y) and"; + msg = sprintf ("%s\ncolumns (z) must be the same as length (x)", msg); error (msg); endif else