Main Content

getPort

Get port from 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.Component or systemcomposer.arch.VariantComponent object.

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

Data Types: char

Output Arguments

collapse all

Port of the component, returned as a systemcomposer.arch.ComponentPort object.

Introduced in R2019a