pcmd and dev are platform-dependent strings.
You can edit the M-file printopt.m to set your default printer type and destination. printopt is an M-file used by print to produce the hardcopy output. Returns strings containing the current system-dependent print command and output device. If you omit filename, print sends the file to the default output device (except for -dmeta and -dbitmap, which place their output on the clipboard). If filename does not include an extension, print appends an appropriate extension, depending on the device (e.g. print filenameĭirects the output to the file designated by filename. (For example, the -noui option suppresses printing of user interface controls.) The Options section lists available options. Specifies print options that modify the action of the print command.
The Devices section lists all supported device types. Specifies a device type, overriding the value returned by printopt. Sends the contents of the current Figure, including bitmap representations of any user interface controls, to the printer using the device and system print command defined by printopt. You can use them in any combination or order. All arguments to the print command are optional. Print, printopt (MATLAB Function Reference) MATLAB Function Referenceĭescription print and printopt produce hardcopy output.