Copy Multiple figures to the clipboard
15 ビュー (過去 30 日間)
古いコメントを表示
My code outputs multiple figures that I would like to copy to the clipboard. Currently, I use the "Edit -> copy figure" for each individual figure, which is tedious. I would like to use:
>> print -clipboard -dbitmap
But this only copies the most recent figure to the clipboard. I feel like there should be some type of "all" command to copy ALL of the figures open in matlab, much like the "close all" function closes all figures. Perhaps something like this:
>> print -clipboard -dbitmap -all
Is there a way to copy all open figures to the clipboard for a quick "paste" into powerpoint? Or does the clipboard not work like that? (using windows 10)
Thanks!
2 件のコメント
回答 (1 件)
Jan
2021 年 6 月 10 日
The OS has a single clipboard only. There are some 3rd party apps, which offer more bins in the clipboard, but it is not easy to feed them fromwithin Matlab. You can try if http://www.clipmenu.com/ works for you.
2 件のコメント
Xingwang Yong
2021 年 6 月 11 日
Since I use Windows, clipmenu would not help.
Although system has only one clipboard, maybe we can put multiple contents into it simultaneously? For example, in Powerpoint, you can select a textbox and a picture, then copy them together. From this stack-overflow thread, it is possible to put multiple contents into clipboard.
I looked into Yair Altman's export_fig. The way he implements -clipboard option is different from the stackoverflow answer.
Jan
2021 年 6 月 11 日
Oh, sorry. I was confused by:
"I have this question too! (using MATLAB 2020a on MacOS)"
"I have the same question."
参考
カテゴリ
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!