Add ports to architecture
Create a model, get the root architecture, add a component, and add ports.
model = systemcomposer.createModel('archModel'); rootArch = get(model,'Architecture'); newcomponent = addComponent(rootArch,'NewComponent'); newport = addPort(newcomponent.Architecture,'NewCompPort','in');
architecture— Component architecture
Component architecture, specified as a
ports to the architecture of a component. Use
<component>.Architecture to access the architecture of a
portTypes— Port directions
Port directions, specified as a cell array of character vectors. A port direction
can be either
stereotypes— Stereotypes to apply to components
Stereotypes to apply to components, specified as a cell array of
systemcomposer.profile.Stereotype objects. Each stereotype in the array must
either be a stereotype that applies to all element types, or a port stereotype.