Printing Lines and Text in Color or Black and White
If you use the print command and do not specify a device option and your device setting defined in printopt is either -dwin or -dwinc, MATLAB determines whether to print lines and text in black and white or color based on:
MATLAB uses the setting of the printer's color property unless you have set a value in the Page Setup dialog, which overrides the setting of the printer's color property. Note that device options specified with the print command override both the Page Setup and color property settings. The order of precedence is then:
Output Target
Note that when you print using the -dwin or -dwinc device type, the output is always directed to a printer. Therefore, you should not specify a filename. If you do specify a filename, MATLAB will create the file using one of its built-in PostScript drivers rather than a Windows driver.
When you print with one of MATLAB's built-in drivers, MATLAB generates output in the appropriate format and then either saves the output to a file (if you provided a filename) or else sends the output to the printer (if you did not give a filename). If the output is directed to a printer, MATLAB creates a temporary file and then executes the MS-DOS command stored in the pcmd string returned by printopt. The file is then deleted.
Ghostscript Drivers
Using Ghostscript drivers is similar to using the built-in MATLAB drivers. When you specify a Ghostscript driver, MATLAB generates PostScript, which Ghostscript then converts to the selected format. MATLAB then executes the command stored in pcmd to print the file, or else saves the output to the specified filename.
Troubleshooting
Occasionally, you may run into problems when printing with a Windows driver, because of a bug in the driver or an incompatibility between the driver and MATLAB. If you do have a problem printing with a Windows driver, try one of these options:
[ Previous | Help Desk | Next ]