load_system - Load Simulink model into memory - MATLAB (original) (raw)

Main Content

Load Simulink model into memory

Syntax

Description

[handle](#d126e456740) = load_system([sys](#d126e456708)) 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 usingsave_system.

example

Examples

collapse all

Suppose you have a model named myModel. Load the model into memory and return the model handle.

h = load_system('myModel')

Input Arguments

collapse all

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'

Example: "myModel"

Example: {'myModel','fuelsys'}

Output Arguments

Version History

Introduced before R2006a