Mercurial > hg > octave-lyh
diff scripts/plot/contour.m @ 904:3470f1e25a79
[project @ 1994-11-09 21:22:15 by jwe]
author | jwe |
---|---|
date | Wed, 09 Nov 1994 21:22:15 +0000 |
parents | 16a24e76d6e0 |
children | 3f257ab07921 |
line wrap: on
line diff
--- a/scripts/plot/contour.m +++ b/scripts/plot/contour.m @@ -1,4 +1,4 @@ -# Copyright (C) 1993 John W. Eaton +# Copyright (C) 1993, 1994 John W. Eaton # # This file is part of Octave. # @@ -67,14 +67,15 @@ set view 0, 0, 1.9, 1 gsplot zz w l 1; else - disp ("mesh: rows (z) must be the same as length (x)"); - error (" and columns (z) must be the same as length (y)"); + 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); + error (msg); endif else error ("mesh: x and y must be vectors and z must be a matrix"); endif else - error ("usage: mesh (z, levels, x, y)"); + usage ("mesh (z, levels, x, y)"); endif endfunction