comparison scripts/plot/grid.m @ 2520:a034dcdbc282

[project @ 1996-11-15 04:57:21 by jwe]
author jwe
date Fri, 15 Nov 1996 04:59:08 +0000
parents b5568c31ee2c
children 8b262e771614
comparison
equal deleted inserted replaced
2519:6914eab16f0b 2520:a034dcdbc282
29 ## Author: jwe 29 ## Author: jwe
30 30
31 function grid (x) 31 function grid (x)
32 32
33 if (nargin == 0) 33 if (nargin == 0)
34 set grid; 34 gset grid;
35 elseif (nargin == 1) 35 elseif (nargin == 1)
36 if (isstr (x)) 36 if (isstr (x))
37 if (strcmp ("off", x)) 37 if (strcmp ("off", x))
38 set nogrid; 38 gset nogrid;
39 elseif (strcmp ("on", x)) 39 elseif (strcmp ("on", x))
40 set grid; 40 gset grid;
41 else 41 else
42 usage ("grid (\"on\" | \"off\")"); 42 usage ("grid (\"on\" | \"off\")");
43 endif 43 endif
44 else 44 else
45 error ("grid: argument must be a string"); 45 error ("grid: argument must be a string");