Leaf elements in
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