Using Simulink | ![]() ![]() |
Print Command
The format of the print
command is
sys
is the name of the system to be printed. The system name must be preceded by the s
switch identifier and is the only required argument. sys
must be open or must have been open during the current session. If the system name contains spaces or takes more than one line, you need to specify the name as a string. See the examples below.
device
specifies a device type. For a list and description of device types, see Using MATLAB Graphics.
filename
is the PostScript file to which the output is saved. If filename
exists, it is replaced. If filename
does not include an extension, an appropriate one is appended.
For example, this command prints a system named untitled
.
This command prints the contents of a subsystem named Sub1
in the current system.
This command prints the contents of a subsystem named Requisite Friction
.
The next example prints a system named Friction Model
, a subsystem whose name appears on two lines. The first command assigns the newline character to a variable; the second prints the system.
To print the currently selected subsystem, enter
![]() | Printing a Block Diagram | Specifying Paper Size and Orientation | ![]() |