new_system
R2026bCreate Simulink model or library in memory
Syntax
Description
creates a model
named handle = new_systemuntitled (and then untitled1,
untitled2, and so on) based on your default model
template and returns the numeric handle of the new model.
Select your default model template on the Simulink® start page or by using the
Simulink.defaultModelTemplate function.
The new_system function does not open the new model. This
function creates the model in memory. To save the model, use
save_system.
creates an empty model based on the Simulink default model and returns the numeric handle of the new model. The
Simulink default model is also known as the root block diagram and has the
numeric handle handle = new_system(name,"Model")0. If name is empty, the
function creates a model or library named untitled,
untitled1, untitled2, and so
on.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a