Main Content

createModel

Create a System Composer model

Syntax

objModel = systemcomposer.createModel(modelName)

Description

objModel = systemcomposer.createModel(modelName) creates a System Composer™ model with name modelName and returns its handle.

createModel is the constructor method for the class systemcomposer.arch.Model.

Examples

model = systemcomposer.createModel('model_name')
model = 

  model with properties:

                   Name: 'model_name'
           Architecture: [1×1 systemcomposer.arch.Architecture]
         SimulinkHandle: 2.0005
                  Views: [0×0 systemcomposer.view.ViewArchitecture]
               Profiles: [0×0 systemcomposer.profile.Profile]
    InterfaceDictionary: [1×1 systemcomposer.interface.Dictionary]

Input Arguments

expand all

Name of new model, specified as a character vector.

Data Types: char

Output Arguments

expand all

Model handle, returned as a systemcomposer.arch.Model object.

Introduced in R2019a