Skip to Main Content Skip to Search
Product Documentation

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 BusElements field is an array containing the following data for each element:

{ElementName, Dimensions, DataType, 
SampleTime, Complexity, SamplingMode, DimensionsMode, Min, Max,DocUnits, Description}

See Also

Bus Assignment | Bus Creator | Bus Selector | Bus to Vector | Simulink.Bus | Simulink.Bus.cellToObject | Simulink.Bus.createMATLABStruct | Simulink.Bus.createObject | Simulink.Bus.save | Simulink.BusElement

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS