Copy Multiple figures to the clipboard

15 visualizaciones (últimos 30 días)
Larz
Larz el 8 de Nov. de 2017
Comentada: Jan el 11 de Jun. de 2021
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 comentarios
noMathWiz
noMathWiz el 15 de Jul. de 2020
Editada: noMathWiz el 15 de Jul. de 2020
I have this question too! (using MATLAB 2020a on MacOS)
Xingwang Yong
Xingwang Yong el 10 de Jun. de 2021
I have the same question.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 10 de Jun. de 2021
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 comentarios
Xingwang Yong
Xingwang Yong el 11 de Jun. de 2021
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 el 11 de Jun. de 2021
Oh, sorry. I was confused by:
"I have this question too! (using MATLAB 2020a on MacOS)"
"I have the same question."

Iniciar sesión para comentar.

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by