Using Simulink | ![]() ![]() |
Positioning and Sizing a Diagram
You can use a model's PaperPositionMode
and PaperPosition
parameters to position and size the model's diagram on the printed page. The value of the PaperPosition
parameter is a vector of form [left bottom width height]
. The first two elements specify the bottom left corner of a rectangular area on the page, measured from the page's bottom left corner. The last two elements specify the width and height of the rectangle. When the model's PaperPositionMode
is manual, Simulink positions (and scales, if necessary) the model's diagram to fit inside the specified print rectangle. For example, the following commands
vdp set_param('vdp', 'PaperType', 'usletter') set_param('vdp', 'PaperOrientation', 'landscape') set_param('vdp', 'PaperPositionMode', 'manual') set_param('vdp', 'PaperPosition', [0.5 0.5 4 4]) print -svdp
print the block diagram of the vdp
sample model in the lower left corner of a U.S. letter-size page in landscape orientation.
If PaperPositionMode
is auto
, Simulink centers the model diagram on the printed page, scaling the diagram, if necessary, to fit the page.
![]() | Specifying Paper Size and Orientation | Generating a Model Report | ![]() |