Simulink Reference | ![]() ![]() |
Draw a port label on the icon of a masked subsystem.
Syntax
Description
port_label(port_type, port_number, label) draws a label on a port where port_type
is either 'input'
or 'output'
, port_number
is an integer, and label
is a string specifying the port's label.
port_label(port_type, port_number, label,'texmode','on') lets you use TeX formatting commands in label
. The TeX formatting commands allow you to include symbols and Greek letters in the port label. See Mathematical Symbols, Greek Letters, and Tex Characters" in the MATLAB documentation for information on the TeX formatting commands supported by Simulink.
Examples
defines a
as the label of input port 1.
disp('Card\nSwapper'); port_label('input',1,'\spadesuit','texmode','on'); port_label('output',1,'\heartsuit','texmode','on');
draw playing card symbols as the labels of the ports on a masked subsystem.
See Also
![]() | plot | text | ![]() |