Contents

Simulink.Bus.objectToCell

Convert bus objects to cell array containing bus information

Syntax

busCells = Simulink.Bus.objectToCell(busNames)

Description

busCells = Simulink.Bus.objectToCell(busNames) inputs a cell array of names of bus objects in the MATLAB® base workspace, and returns a cell array of cell arrays in which each subordinate array contains the bus information defined by one of the bus objects. The order of the elements in the output array corresponds to the order of the names in the input array. If busNames is empty, the function converts all bus objects in the base workspace. The inverse function is Simulink.Bus.cellToObject.

Input Arguments

busNames

A cell array of names of bus objects in the MATLAB base workspace

Output Arguments

busCells

A cell array of cell arrays in which each subordinate array represents a bus object and contains the following data:

{BusName, HeaderFile, Description, DataScope, Alignment, Elements}

The Elements field is an array containing the following data for each element:

{ElementName, Dimensions, DataType, 
SampleTime, Complexity, SamplingMode, DimensionsMode, Min, Max, DocUnits, Description}
Was this topic helpful?