h = new_system("myModel2",Model="myModel1/mySubsystem");
创建一个名为 mySubsystem 的空子系统文件。
h = new_system("mySubsystem","Subsystem");
创建名为 myLibrary 的库。
h = new_system("myLibrary","Library");
创建一个名为 cycle 的变量。
cycle = 3;
尝试使用 ErrorIfShadowed 选项创建一个与该变量同名的模型。
new_system("cycle","ErrorIfShadowed")
The model 'cycle' cannot be created because this name is shadowing another name on the MATLAB path or in the workspace. Choose another name, or do not use the option
'ErrorIfShadowed'