MATLAB: How to copy GUI figure to the clipboard but exclude all the UI objects in MATLAB 7.6 (R2008a)

axesclipboardcopyfigureMATLABparttoolbaruicontrol

I would like to copy a my GUI figure to the clipboard leaving the UI objects and menus out.

Best Answer

In order to copy your figure to the clipboard you can use the -NOUI option with the PRINT command as follows:
1. Open your GUI.
2. Run the following code:
set(0,'showhiddenhandles','on')
print -dmeta -noui
3.The axes of the GUI figure now should be in the clipboard. You can now paste it, for example, in a word document.