Printing and Exporting Figures with MATLAB | ![]() ![]() |
Using the Windows User Interface
Note
The Windows Print dialog box uses the printer driver specified in
printopt.m . If you want to use a different driver, edit printopt.m . See
Changing the Default Device and Printing Command.
|
Using the UNIX User Interface
For more information on using the UNIX Print dialog box, see its context sensitive help by clicking its Help button.
Using the print Command
The syntax for printing to a file is
where -device
is set to a driver that is compatible with the printer you want to send it to later. See the reference page for print
for the list of drivers.
For example, this call to print
creates a file named mydata
that can later be printed to an HP LaserJet III.
This example prints to a file that can be printed by any Level II color PostScript driver,
![]() | Printing to a File | Appending Figures to a PostScript File | ![]() |