createModel

Create a System Composer model

Syntax

objModel = systemcomposer.createModel(modelName)

Description

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

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

Input Arguments

expand all

Model name must be a valid MATLAB variable name.

Data Types: char | string

Output Arguments

expand all

Data Types: 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]

Introduced in R2019a