getPort

Get the port from a component

Description

port = getPort(compObj,portName) gets the port on this component with a specified name.

Input Arguments

collapse all

Component from which to get the port, specified as a systemcomposer.arch.BaseComponent object.

Name of the port to find, specified as a string or character array.

Output Arguments

collapse all

Port of the component.

Introduced in R2019a