File Exchange

image thumbnail

Vectorized hold

version 1.0 (1.77 KB) by

Vectorized version of hold function.

1 Download


View License

VHOLD(multiax, onoff) set hold state of multiple axes.
VHOLD(multiax, onoff) is a vectorized version of function hold.
It sets the states of multiple axes objects with handles in matrix
multiax, to the states provided in onoff. Argument onoff can be a
single string, 'on' or 'off', setting all the axes to that hold state,
or a cell matrix of strings 'on', 'off', setting individual axes to
(possibly) different states. Note that in the second case, matrix
multiax and cell matrix onoff should have the same size, i.e.,
size(multiax) should equal size(onoff), if onoff is a cell matrix.

VHOLD(multiax, onoff)

multiax = matrix of handles to axes objects
= [ax11, ax12, ..., ax1m;
ax21, ax22, ..., ax2m;
: : : :
axn1, axn2, ..., axnm];
onoff = hold states for axes objects with handles in array multiax
= 'on' (to set all axes objects hold states to 'on') |
= 'off' (to set all axes objects hold states to 'off') |
= {'on', 'off', 'off', ..., } (to set individual hold states)

Comments and Ratings (0)

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today