View License

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

» Watch video

Highlights from
Take & Restore hold

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 2.24 KB File ID: #36641 Version: 1.0

Take & Restore hold



Hold axes temporarily, optionally respecting the previous hold state.

| Watch this File

File Information

This is a pair of functions to manipulate the hold state of an axes object.

The first one holds the axes for adding multiple new graphics objects. It can optionally clear them first, if the previous hold state was off.

This is useful when a function either:

1) adds graphics without erasing anything, ignoring the existing hold state, or

2) behaves like plot, but needs to temporarily add multiple objects to the plot.

The second function restores the axes object to its previous hold state.


Savehold: Run The 'Hold On' Command And Save Its State For Possible Restoration inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us