load_system
将 Simulink 模型加载到内存中
说明
示例
将模型加载到内存中
假设您有一个名为 myModel
的模型。将模型加载到内存中并返回模型句柄。
h = load_system('myModel')
输入参数
sys
— 要搜索的系统
字符向量 | 字符串标量
要搜索的系统,指定为完整的系统路径名称、系统路径名称元胞数组、句柄或句柄向量。
示例: 'myModel/Subsystem1'
示例: "myModel"
示例: {'myModel','fuelsys'}
输出参数
handle
— 加载的模型的句柄
句柄
加载的模型的句柄。
版本历史记录
在 R2006a 之前推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)