Functions | |
function | grid (varargin)[ax |
if (nargs > 2) print_usage() | |
elseif (nargs==0) grid_on | |
if (ischar(x)) if(strcmpi(x | |
elseif (strcmpi(x,"on")) grid_on | |
elseif (strcmpi(x,"minor")) if(nargs | |
if (strcmpi(x2,"on")) minor_on | |
elseif (strcmpi(x2,"off")) minor_on | |
else | print_usage () |
if (minor_on) grid_on | |
endif else | error ("grid: argument must be a string") |
endif endif | if (grid_on) set(ax |
else | set (ax,"xminorgrid","off","yminorgrid","off","zminorgrid","off") |
endif else | set (ax,"xgrid","off","ygrid","off","zgrid","off") |
Variables | |
function | varargin |
function | nargs = __plt_get_axis_arg__ ("grid", varargin{:}) |
grid_on | |
minor_on | |
else | x = varargin{1} |
endif endif | xgrid |
endif endif | on |
endif endif | ygrid |
endif endif | zgrid |
xminorgrid | |
yminorgrid | |
zminorgrid |
elseif | ( | strcmpi(x2,"off") | ) |
elseif | ( | strcmpi(x,"minor") | ) |
elseif | ( | strcmpi(x,"on") | ) |
elseif | ( | nargs | = =0 |
) |
function grid | ( | varargin | ) |
if | ( | minor_on | ) |
if | ( | strcmpi(x2,"on") | ) |
if | ( | ischar(x) | ) |
if | ( | nargs | , | |
2 | ||||
) |
else print_usage | ( | ) |
else set | ( | ax | , | |
"xminorgrid" | , | |||
"off" | , | |||
"yminorgrid" | , | |||
"off" | , | |||
"zminorgrid" | , | |||
"off" | ||||
) |
function varargin |
else x = varargin{1} |