Contenuto principale

systemcomposer.createActivity

Create System Composer activity diagram model

Since R2024a

    Description

    activityModel = systemcomposer.createActivity(activityName) creates a System Composer™ activity diagram model with the name activityName.

    example

    activityModel = systemcomposer.createActivity(activityName,openActivity) opens the activity diagram model if openActivity is true.

    Examples

    collapse all

    Create an activity diagram and open it.

    activityModel = systemcomposer.createActivity("activity_name",true)

    Input Arguments

    collapse all

    Name of new activity diagram, specified as a character vector or string. This name must be a valid MATLAB® identifier.

    Example: "activity_name"

    Data Types: char | string

    Option to open the activity diagram model, specified as true or false.

    Data Types: char | string

    Output Arguments

    collapse all

    Activity diagram, returned as a systemcomposer.activity.Model object.

    More About

    collapse all

    Version History

    Introduced in R2024a

    expand all