function holdstate = ishold()
%ISHOLD	Return 1 if hold is on.
%	ISHOLD returns 1 if hold is on, and 0 if it is off.
%	When HOLD is ON, the current plot and all axis properties
%	are held so that subsequent graphing commands add to the 
%	existing graph.
%
%	Hold on means the NextPlot property of both figure
%	and axes is set to "add".
%
%	See also HOLD, NEWPLOT, FIGURE, AXES.

%	Copyright (c) 1984-93 by The MathWorks, Inc.

holdstate = strcmp(lower(get(gca,'NextPlot')),'add') & strcmp(lower(get(gcf,'NextPlot')),'add');
