addPortIdentifier
Class: Simulink.Mask
Namespace: Simulink
Syntax
maskObj.addPortIdentifier(Name=Value)
Description
maskObj.addPortIdentifier(
creates a port identifier to identify a particular port in the mask object.Name=Value
)
Input Arguments
Examples
amaskObj.addPortIdentifier('Name','pi1',... 'Type','Input',... 'IdentifierType','index',... 'Identifier','2')
ans = PortIdentifier with properties: Name: 'pi1' Type: 'Input' IdentifierType: 'index' Identifier: '2'
aMaskObj.addPortIdentifier('Name','pi2',... 'IdentifierType','name',... 'Identifier','common_gain')
ans = PortIdentifier with properties: Name: 'pi2' Type: '' IdentifierType: 'name' Identifier: 'common_gain'
Version History
Introduced in R2022a