Help CenterHelp Center
Load Simulink model into memory
handle = load_system(sys)
example
handle = load_system(sys) loads the model sys into memory without opening the model in the Simulink® Editor. After you load a model into memory, you can work with it using Simulink API commands. Save changes to the model using save_system.
handle
sys
save_system
collapse all
Suppose you have a model named myModel. Load the model into memory and return the model handle.
myModel
h = load_system('myModel')
System to search, specified as the full system path name, a cell array of system path names, a handle, or a vector of handles.
Example: 'myModel/Subsystem1'
'myModel/Subsystem1'
Example: "myModel"
"myModel"
Example: {'myModel','fuelsys'}
{'myModel','fuelsys'}
Handle of loaded model.
Introduced before R2006a
close_system | open_system | save_system
close_system
open_system
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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:
Select the China site (in Chinese or English) for best site performance. Other bat365 country sites are not optimized for visits from your location.
Contact your local office