MATLAB: How to specify which printer to use when printing figures directly from the command line

MATLABprinterselect

I would like to know how to specify which printer to use when printing figures directly from the command line.

Best Answer

You can select which printer to use with the -P option of the PRINT command. The following code will print the current figure to 'myPrinter'.
>> print -PmyPrinter
To View a list of available printers, use the following command.
 
>> [~,printers] = findprinters
Please note that if you do not specify a printer, then print uses the system default printer.
For further details, please see the reference.
- MATLAB documentation: print