Graphics Previous page   Next Page

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 quotation marks 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.


Previous page  Changing a Figure's Settings Setting the Figure Size and Position Next page

© 1994-2005 The MathWorks, Inc.