MATLAB Function Reference | Search  Help Desk |
ishold | Examples See Also |
k = ishold
k = ishold
returns the hold state of the current Axes. If hold
is on
k = 1
, if hold
is off
, k
=
0
.
ishold
is useful in graphics M-files where you want to perform a particular action only if hold
is not on
. For example, these statements set the view to 3-D only if hold
is off
:
if ~ishold view(3); end
axes
, figure
, hold
, newplot