How to copy a MATLAB figure and past it in a Word document? [closed]
-
20-06-2021 - |
Domanda
I have some MATLAB figures open in MATLAB. I would like to copy them to a word document without exporting and converting them to a .png or .jpg, etc. Is there a straightforward and easy way?
Soluzione
Go to edit
, choose copy figure
, then Ctrl+v
into word. It works in Windows, but not Linux. Not sure about Mac.
See here for more information.
Altri suggerimenti
Issue the command:
print -dmeta
It will copy the current figure to the system clipboard (Microsoft Windows only). Now open MS Word, and simply hit Ctrl+V to paste the figure in the document.
One way is to use screen-capture short-cuts.
On Mac OS X for example, if you hold down the Control, Shift, Command (cloverleaf) and "4" (yes, number 4) keys, the mouse pointer will turn into crosshairs that can be used to draw a rectangle around the figure that you want to copy. This places a picture of that area on the clipboard that can then be dumped into another program such as Word by using Paste.