Main Content

systemcomposer.exportToVersion

Export architecture model and dependencies to previous release of System Composer

    Description

    systemcomposer.exportToVersion(modelName,dirName,version) exports an architecture model with name modelName and its dependencies to the version of System Composer™ given by version. The exported artifacts are created in a directory specified by dirName.

    example

    Examples

    collapse all

    Create an architecture model, then export that model to a previous version of System Composer.

    model = systemcomposer.createModel("OlderVersionModel");
    save(model)
    systemcomposer.exportToVersion('OlderVersionModel',"OlderVersion","R2021a")

    Input Arguments

    collapse all

    Name of model, specified as a character vector or string.

    Example: "exMobileRobot"

    Data Types: char | string

    Name of empty directory, specified as a character vector or string. You can specify either the relative path to the directory or the full path.

    Example: "Projects/Aero"

    Data Types: char | string

    Version of MATLAB, specified as a character vector or string.

    Example: "R2022b"

    Data Types: char | string

    More About

    collapse all

    Version History

    Introduced in R2019b