| Simulink® | ![]() |
Simulink.Bus.save('fileName')
Simulink.Bus.save('fileName', 'format')
Simulink.Bus.save('fileName', 'format', busNames)
Simulink.Bus.save('fileName', 'format', busNames) saves bus objects, i.e., instances of Simulink.Bus class, residing in the MATLAB® workspace in an M-file. Executing the M-file restores the objects to the workspace. This function takes the following arguments:
'fileName' — Name of the file in which to store the bus objects
'format' — Format used to store the bus objects. May be 'cell' or 'object' or omitted in which case 'cell' is assumed. Use cell array format to save the objects in a compact form.
When the M-file generated for the 'cell' format executes, it
Calls Simulink.Bus.cellToObject to recreate the bus objects
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 M-file.
busNames — A cell array containing names of bus objects to be saved. If the cell array is empty or omitted, this function saves all bus objects in the MATLAB workspace.
![]() | Simulink.Bus.objectToCell | Simulink.SubSystem.convertToModelReference | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |