# HG changeset patch # User jwe # Date 815380721 0 # Node ID b1b68110d125816f14849e0a326356212d97afdd # Parent 26a096727e8958e106a232af1cd1cc65b2dba95f [project @ 1995-11-03 06:38:41 by jwe] diff --git a/scripts/plot/mesh.m b/scripts/plot/mesh.m --- 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