Main Content

save

Save profile as file

    Description

    example

    filePath = save(profile,dirPath) saves profile to disk as file specified in its Name property with a .xml extension. Saves to the current directory if the optional dirPath is left blank.

    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. Current directory is the default if no path is specified.

    Example: 'C:\Temp'

    Data Types: char

    Output Arguments

    collapse all

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

    Introduced in R2019a