Main Content

save

Save profile as file

    Description

    filePath = save(profile) saves a profile to disk as a file with a .xml extension to the current directory.

    example

    filePath = save(profile,dirPath) saves a profile to disk as a file with a .xml extension to the directory path dirPath.

    example

    Examples

    collapse all

    Create a profile named newProfile and save it in the current directory.

    profile = systemcomposer.profile.Profile.createProfile("newProfile");
    path = save(profile);

    Input Arguments

    collapse all

    Profile, specified as a systemcomposer.profile.Profile object.

    Path to save, specified as a character vector or string. The current directory is the default if no path is specified.

    Example: "C:\Temp\MATLAB"

    Data Types: char | string

    Output Arguments

    collapse all

    File path where profile is saved, returned as a character vector.

    More About

    collapse all

    Version History

    Introduced in R2019a