Skip to Main Content Skip to Search
Product Documentation

hgexport - Export figure

Alternatives

Use the File —> Saveas on the figure window menu to access the Export Setup GUI. Use Edit —> Copy Figure to copy the figure's contents to your system's clipboard. For details, see How to Print or Export in the MATLAB Graphics documentation.

Syntax

hgexport(h,filename)
hgexport(h,'-clipboard')

Description

hgexport(h,filename) writes figure h to the file filename.

hgexport(h,'-clipboard') writes figure h to the Microsoft Windows clipboard.

The format in which the figure is exported is determined by which renderer you use. The Painters renderer generates a metafile. The ZBuffer and OpenGL renderers generate a bitmap.

See Also

print

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS