ファイル名:Zgrid.m
function zgrid(opt_grid);
% ZGRID Zgrid lines.
% ZGRID ON adds grid lines to the current axes.
% ZGRID OFF takes them off.
% ZGRID, by itself, toggles the grid state.
%
% ZGRID sets the ZGrid properties of the current axes.
%
% See also TITLE, XLABEL, YLABEL, ZLABEL, AXES, PLOT.
% Copyright (c) 1984-97 by The MathWorks, Inc.
% $Revision: 5.3 $ $Date: 1997/04/08 06:08:16 $
ax = gca;
if nargin == 0
if strcmp(get(ax,'ZGrid'),'off')
set(ax,'ZGrid','on');
else
set(ax,'ZGrid','off');
end
elseif strcmp(opt_grid, 'on')
set(ax,'ZGrid', 'on');
elseif strcmp(opt_grid, 'off')
set(ax,'ZGrid', 'off');
else
error('Unknown command option.');
end