Simulink.Mask.PortIdentifier Class
Description
Create an instance of Simulink.Mask.PortIdentifier
to create and set
the properties for the port identifier on a masked block.
Properties
Name
— Name for the port identifier
empty character vector (default)
Name of the port identifier, specified as a character vector. This name uniquely identifies the port identifier in the mask.
Data Types: char
Type
— Type of port
input (default) | output
Type of the port, specified as either Input
or
Output
.
Data Types: string
IdentifierType
— Type of identifier
index (default) | name
Type of identifier, specified as name
or
index
. Specify name
if you want to identify the
ports using a name, otherwise specify index
, if you want to identify
the ports using a port index.
Data Types: string
Identifier
— Port identifier appearing in block
character vector (default)
Port identifier appearing in the block, specified as a character vector. If the
IdentifierType is index
, you can specify the identifiers in one of
these formats:
Index: The index to associate the port with the port identifier. For example, '3' associates port '3' with the port identifier.
Lower port index:Upper port index: The lower port index and upper port index to associate all the ports between the indices with the port identifier. For example, '2:4' associates ports 2, 3, and 4 with the port identifier.
List of port indices: The ports separated by comma to associate the ports with the port identifier. For example, 3,5,7. This associates the ports 3, 5, and 7 with the port identifier. Duplicates are not allowed.
The name of the port is specified.
Port name: String: If IdentifierType
is
name
, this parameter is the name of the port.
Data Types: string
| char
Version History
Introduced in R2022a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)