How can I copy GUI figure to the clipboard but exclude all the UI objects in MATLAB 7.6 (R2008a)?
1 view (last 30 days)
Show older comments
I would like to copy a my GUI figure to the clipboard leaving the UI objects and menus out.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!