addPort adds ports to the architecture of a component. Use
<component>.Architecture to access the architecture of a
component.
Data Types: systemcomposer.arch.Architecture
portNames — Names of ports cell array of strings
Port names must be unique within each component. If necessary, System Composer™ appends a number to the port name to ensure uniqueness. The size of
portNames,portTypes, and
stereotypes must be the same.
Data Types: string
portTypes — Port directions cell array of strings
Port directions are given in a cell array. Each element is either
'in' or 'out'.
Data Types: string
stereotypes — Stereotypes to apply to the components Array of stereotypes
Each stereotype in the array must either be a mixin stereotype or a port stereotype.
The size of portNames,portTypes, and
stereotypes must be the same.