Printing and Exporting Figures with MATLAB | ![]() ![]() |
Exporting to the Clipboard Using MATLAB Commands
To export to the clipboard, do not include the filename
argument and use one of the following two clipboard formats: -dbitmap
or -dmeta
. These switches create a Windows Bitmap (BMP) or a Enhanced Metafile (EMF), respectively.
print -dmeta % Export current figure to clipboard as EMF. print -dbitmap % Export current figure to clipboard as BMP.
These two clipboard formats can also be used for exporting to a file, if desired, but you cannot export to the clipboard using any formats other than -dmeta
and -dbitmap
. Note that while the -dmeta
switch uses a vector format, in some cases MATLAB may create a bitmap file. For more information about working with these formats, see Clipboard Formats.
![]() | Exporting to a File Using MATLAB Commands | Using the getframe Command to Export a Graphic | ![]() |