nodes
Define component nodes, that is, conserving ports of block
Parent Section: component
Syntax
nodes a = namespace_name.domain_name; end
Description
nodes
begins a nodes declaration section, which is terminated by an
end
keyword. This section contains declarations for the component
nodes, which correspond to the conserving ports of a Simscape™ block generated from the component file. Each node is defined by
assignment to an existing domain. See Declare Component Nodes for more information.
The following syntax defines a node, a
, by associating it with a
domain, domain_name
. namespace_name
is the full
path to the domain, starting with the top namespace folder. For more information on
organizing your Simscape files, see Building Custom Block Libraries.
nodes a = namespace_name.domain_name; end
You can specify the port label, the way you want it to appear in the block diagram, as a comment:
nodes a = namespace_name.domain_name; % label end
where label
is a string corresponding to the port name in the block
diagram. You can use the Side
annotation to specify the port location
on the block icon. For more information, see Customize the Names and Locations of the Block Ports.
You can also declare nodes as resizable arrays of elements that all belong to the same domain type. For more information, see Arrays of Nodes.
Examples
Version History
Introduced in R2008b