isPort

Find if instance is port instance

Description

flag = isPort(instance) finds whether the instance is a port instance.

Input Arguments

collapse all

Element instance, specified by a systemcomposer.analysis.ArchitectureInstance, systemcomposer.analysis.ComponentInstance, systemcomposer.analysis.PortInstance, or systemcomposer.analysis.ConnectorInstance object. This function is part of the instance API that you can use to analyze the model iteratively, element by element.instance refers to the element instance on which the iteration is being performed.

This argument is true if the instance is a port.

Data Types: logical

Introduced in R2019a