メインコンテンツ

partrepo.getInstallFolder

Return path for installation folder

Since R2026a

    Description

    installPath = partrepo.getInstallFolder() returns the folder path where Simscape installs part collections.

    example

    Examples

    collapse all

    To return the collection install folder path, use the partrepo.getInstallFolder function.

    installPath = partrepo.getInstallFolder
    installPath = 
    
        "C:\Users\userName\Documents\MATLAB\PartRepo"

    Output Arguments

    collapse all

    Folder path where Simscape installs collections, returned as a string scalar.

    Version History

    Introduced in R2026a