可以在命令行新建 Simulink 模型,如图: 要注意,这里的两个内置函数,即 new_system 和 open_system 都省略了后缀名 slx。 用 open_system 函数可以打开既有模型,如图: