How do I copy the plot in a figure to a clipboard to paste to an external application outside MATLAB?
2 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2010 年 1 月 21 日
コメント済み: Kevin Gleason
2016 年 9 月 27 日
I have a plot figure and I want to copy the figure to clipboard to paste to an external editor, say Microsoft Word.
採用された回答
MathWorks Support Team
2010 年 1 月 21 日
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).
1 件のコメント
Kevin Gleason
2016 年 9 月 27 日
Could you clarify what you would like to copy? Just the axes object perhaps, as explained by this link:
Otherwise, the figure is usually the whole window. The print function can take a figure handle and arguments "print(f,'-dmeta','-clipboard','-noui')". You could copy your desired objects into a new figure and print that to your clipboard. The following article may be helpful:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!