Copy Multiple figures to the clipboard

15 ビュー (過去 30 日間)
Larz
Larz 2017 年 11 月 8 日
コメント済み: Jan 2021 年 6 月 11 日
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 件のコメント
noMathWiz
noMathWiz 2020 年 7 月 15 日
編集済み: noMathWiz 2020 年 7 月 15 日
I have this question too! (using MATLAB 2020a on MacOS)
Xingwang Yong
Xingwang Yong 2021 年 6 月 10 日
I have the same question.

サインインしてコメントする。

回答 (1 件)

Jan
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
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
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 ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by