12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

print, printoptPurpose2print, printoptCreate hardcopy outputSyntaxDescriptionprintprint –devicetype –options filename[pcmd,dev] = printoptprint and printopt produce hardcopy output. All arguments to the printcommand are optional. You can use them in any combination or order.print sends the contents of the current figure, including bitmaprepresentations of any user interface controls, to the printer using the deviceand system print command defined by printopt.print –devicetype specifies a print device (an output format such as TIFF orPostScript or a print driver that controls what <strong>MATLAB</strong> sends to your printer),overriding the value returned by printopt. The Devices section lists allsupported device types.print –options specifies print options that modify the action of the printcommand. (For example, the –noui option suppresses printing of user interfacecontrols.) The Options section lists available options.print filename directs the output to the file designated by filename. Iffilename does not include an extension, print appends an appropriateextension, depending on the device (e.g., .eps). If you omit filename, printsends the file to the default output device (except for −dmeta and −dbitmap,which place their output on the clipboard).print(...) the function form of print, with arguments in parentheses, enablesyou to pass variables for any input arguments. This form is useful passing filenames and handles. See Batch Processing for an example.[pcmd,dev] = printopt returns strings containing the currentsystem-dependent print command and output device. printopt is an M-fileused by print to produce the hardcopy output. You can edit the M-fileprintopt.m to set your default printer type and destination.2-366

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!