Leaf elements in
getLeafBusElements( returns the leaf
elements in the specified
A leaf element of a bus object is any element of the bus object that is not defined by another bus object. For example, a signal or message can be a leaf element of a bus object.
Get Information about Leaf Elements in Bus Object
Any element that is not defined by a bus object is a leaf element. For example, signals can be leaf elements of a bus object.
Load a bus object into the base workspace by running the function named
The top-level bus object, named
TopBus, defines a signal named
Step and a nested bus object. The nested bus object defines two signals:
Get information about the leaf elements in
leaf = getLeafBusElements(TopBus)
leaf = 3x1 BusElement array with properties: Min Max DimensionsMode Description Unit Name DataType Complexity Dimensions
Get the properties of a leaf element.
ans = BusElement with properties: Name: 'Chirp' Complexity: 'real' Dimensions: 1 DataType: 'double' Min:  Max:  DimensionsMode: 'Fixed' Unit: '' Description: ''
busObj — Bus definition
Bus definition, specified as a
Simulink.Bus object. The top-level
bus object and each nested bus object must be in the base workspace.
getLeafBusElements function to determine the data type, complexity,
and dimensions of MATLAB®
timeseries objects needed to create a structure of
timeseries objects from a bus.
Introduced in R2010b