Save bus objects in MATLAB file
Simulink.Bus.save(fileName)
Simulink.Bus.save(fileName,format)
Simulink.Bus.save(fileName,format,busNames)
Simulink.Bus.save(
saves all bus objects (instances of文件名
)Simulink.Bus
class) that are in the MATLAB®base workspace in a MATLAB file that contains a cell array of cell arrays. Each subordinate cell array represents a bus object and contains this data:
Bus name
Header file
Description
Data scope
Alignment
Elements
The elements field is an array containing this data for each element:
Element name
Dimensions
Data type
Sample time
Complexity
Dimensions mode
Minimum
Maximum
Units
Description
Executing a MATLAB file created bySimulink.Bus.save
in cell array format callsSimulink.Bus.cellToObject
to recreate the bus objects and returns the new bus objects in the cell array. To suppress the creation of bus objects, specify the optional argument'false'
when you execute the MATLAB file.
Bus Creator|Simulink.Bus
|Simulink.Bus.cellToObject
|Simulink.Bus.createMATLABStruct
|Simulink.Bus.objectToCell
|Simulink.BusElement