Create Simulink.Bus objects from blocks or MATLAB structures
creates busInfo
= Simulink.Bus.createObject(struct
)Bus
objects from a structure that can contain MATLAB®
timeseries
, MATLAB
timetable
, and
matlab.io.datastore.SimulationDatastore
objects or a numeric
structure. These Bus
objects are created in the base workspace or,
if available, the data dictionary used by the model.
saves busInfo
= Simulink.Bus.createObject(___,file
)Bus
objects in a function that defines object properties in a
cell array of cell arrays, then creates the Bus
objects by calling
Simulink.Bus.cellToObject
.
If you specify a model name, the model must compile successfully before you use the
Simulink.Bus.createObject
command.