Using MATLAB Graphics     Search    Help Desk 

Specifying Paper Size

You can set the PaperType property to set the size of the paper you are printing on. The values for PaperType are standard paper sizes such as usletter and a4. When you set PaperType, MATLAB also sets PaperSize, which is a read-only property that indicates the actual dimensions for the current PaperType, in the current PaperUnits.

If you are printing on a paper size that MATLAB does not recognize, set the PaperPosition property to position the figure as you want it to be on the real paper size. MATLAB will use the values you set, even if the size specified by PaperPosition is larger than the current value of PaperSize.

For example, suppose you want to print on paper that is 30 inches by 40 inches. You could set PaperPosition to [.5 .5 29 39], either at the command line or in the Page Setup dialog box.

Changing the Default Paper Type

You can change the default value of the figure PaperType property by setting a default value on the root level:

where paper_type is one of the values listed with the PaperType property description. This command changes the default for the duration of your MATLAB session. If you want the new default to be used whenever you start MATLAB, add this command to your startup M-file. Type

for more information.



[ Previous | Help Desk | Next ]