Display text at specific location on masked subsystem icon
text(x
,y
,'text
') text(x
,y
,'text'
, 'horizontalAlignment','halign'
, 'verticalAlignment','valign'
) text(x
,y
, 'text
', 'texmode', 'on')
The text
command places a character vector
at a location specified by the point (x,y)
whose
units are defined by the Icon units option in
the Mask Editor.
text(
allows you to use TeX formatting commands in x
,y
,
text
, 'texmode', 'on')text
. The TeX
formatting commands in turn allow you to include symbols and Greek letters in icon text. See
Interpreter for information on the TeX formatting
commands supported by Simulink® software.
You can optionally specify the horizontal and/or vertical alignment
of the text relative to the point (x, y) in the text
command.
The text
command offers the following horizontal
alignment options.
Option | Aligns |
---|---|
| The left end of the text at the specified point |
| The right end of the text at the specified point |
| The center of the text at the specified point |
The text
command offers the following vertical
alignment options.
Option | Aligns |
---|---|
| The baseline of the text at the specified point |
| The bottom line of the text at the specified point |
| The midline of the text at the specified point |
| The capitals line of the text at the specified point |
| The top of the text at the specified point |
Note
While this text
function is identical in
name to its corresponding MATLAB® function, it provides only the
functionality described on this page.
disp
| fprintf
| port_label