The Simulink® software provides all Bus Editor capabilities programmatically. Many of these capabilities, like importing and exporting MATLAB® code files and MAT-files, are not specific to bus objects, and are described elsewhere in the MATLAB and Simulink documentation.
The classes that implement bus objects are:
The functions that create and save bus objects are:
Create bus objects for blocks, optionally saving them in a MATLAB file in a specified format
Convert a cell array containing bus information to bus objects in the base workspace
Convert bus objects in the base workspace to a cell array containing bus information
Export specified bus objects or all bus objects from the base workspace to a MATLAB file in a specified format
Create MATLAB structure with same hierarchy, names, and attributes as the bus signal
In addition, when you use
convert an atomic subsystem to a referenced model, you can save any
bus objects created during the conversion to a MATLAB file.