| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
new_system('sys')
new_system('sys', 'Model')
new_system('sys', 'Model', 'subsystem_path')
new_system('sys', 'Model', 'ErrorIfShadowed')
new_system('sys', 'Library')
new_system('sys') or new_system('sys', 'Model') creates an empty system where 'sys' is the name of the new system. This command displays an error if 'sys' is a MATLAB keyword, 'simulink', or more than 63 characters long.
new_system('sys', 'Model', 'subsystem_path') creates a 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', 'Model', 'ErrorIfShadowed') creates an empty system having the specified name. This command generates an error if another model, M-file, or variable of the same name exists on the MATLAB path or workspace.
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.
This command creates a new system named 'mysys'.
new_system('mysys')
The command
new_system('mysys','Library')
creates, but does not open, a new library named 'sys'.
The command
new_system('vdp','Model','ErrorIfShadowed')
returns an error because 'vdp' is the name of a model on the MATLAB path.
The commands
load_system('f14')
new_system('mycontroller','Model','f14/Controller')
create a new model named mycontroller that has the same contents as does the subsystem named Controller in the f14 demo model.
close_system, open_system, save_system
![]() | modeladvisor | num2fixpt | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |