Graphics    

Selecting the Figure

By default, MATLAB prints the current figure. If you have more than one figure open, the current figure is the last one that was active. To make a different figure active, click on it to bring it to the foreground.

Using MATLAB Commands

Specify a figure handle using the command

This example sends Figure No. 2 to the printer. A figure's number is usually its handle.

Selecting the Printer

You can select the printer you want to use with the Print dialog box or with the print function.

Using the Graphical User Interface

  1. Select Print from the figure window's File menu.
  2. Select the printer from the list box near the top of the Print dialog box.
  3. Click OK.

Using MATLAB Commands

You can select the printer using the -P switch of the print function.

This example prints Figure No. 3 to a printer called Calliope.

If the printer name has spaces in it, put quotes around the -P option, as shown here.

Using a Network Print Server.   On Windows NT, Windows 2000, and Windows XP systems, you can print to a network print server using the form shown here for a printer named trinity.

This form is not supported on Windows 98 or Windows ME. On these platforms, you can print to a network printer only if you install a network printer using the Add Printer dialogs. When installed in this manner, these network printers work without the use of the \\server\printer notation, as they look the same as local printers.


  Changing a Figure's Settings Setting the Figure Size and Position