| Simulink Reference | ![]() |
Create an empty Simulink system
Syntax
new_system('sys') new_system('sys', 'Model') new_system('sys', 'Model', 'subsystem_path') new_system('sys', 'Library')
Description
new_system('sys') or new_system('sys', 'Model') creates an empty system where sys is the name of the new system.
new_system('sys', 'Model', 'subsystem_path') creates a new system from a subsystem where subsystem_path is the full path of the subsystem. The model that contains the subsystem must be open when this command is executed.
new_system('sys', 'Library') creates an empty library.
See Model and Block Parameters for a list of the default parameter values for the new system.
Example
This command creates a new system named 'mysys'.
creates a new model named mycontroller that has the same contents as does the subsystem named Controller in the f14 demo model.
See Also
| modeladvisor | open_system | ![]() |
© 1994-2005 The MathWorks, Inc.