MATLAB: How to copy the plot in a figure to a clipboard to paste to an external application outside MATLAB

copyctrlguiMATLABpastev

I have a plot figure and I want to copy the figure to clipboard to paste to an external editor, say Microsoft Word.

Best Answer

The PRINT function can be used in the following format:
print -dmeta -noui
in a GUI callback. The attached GUI shows how this behavior can be achieved. To try this sample, please follow these steps:
1) Download the attached files.
2) Run the program and in the GUI, click on the push button.
3) Open MS-Word and type Ctrl+V (Paste).