Main Content

removePortIdentifier

Removes specified port identifier from mask object

Since R2022a

Syntax

aMaskObj.removePortIdentifier(portIdentifier)

Description

aMaskObj.removePortIdentifier(portIdentifier) removes the specified port identifier on the mask object.

Input Arguments

expand all

Name of the port identifier to be removed from the mask object, specified as a string or character vector.

Data Types: char | string

Example

Add port identifier

amaskObj.addPortIdentifier('Name','pi1','Type','Input','IdentifierType','index','Identifier','2')

Remove port identifier

amaskObj.removeAllPortIdentifier('pi1');
amaskObj.getPortIdentifier('pi1');
Port Identifier 'pi1' does not exist in the block 'model1/Subsystem'.

Version History

Introduced in R2022a