matlabshared.supportpkg.getSupportPackageRoot - Get root folder of support packages - MATLAB (original) (raw)

Main Content

Get root folder of support packages

Syntax

Description

[installDir](#bu2w%5Ft8-installDir) = matlabshared.supportpkg.getSupportPackageRoot gets root folder of the current support packages. MATLAB® installs all support packages to this location.

example

Examples

collapse all

Use the setSupportPackageRoot function to change the installation folder for support packages. You need administrative privileges to use this function.

matlabshared.supportpkg.setSupportPackageRoot('C:\MATLAB\CustomSupportPackageRoot')

Use getSupportPackageRoot to check that the change was successful.

matlabshared.supportpkg.getSupportPackageRoot

ans =

C:\MATLAB\CustomSupportPackageRoot

Output Arguments

collapse all

Root folder of support packages, returned as a character vector.

The default location of the root folder is platform specific:

_`release`_ is the current MATLAB release.

If a folder exists at the default location and is not empty, MATLAB sets the root folder location to the default location appended with n. For example, on a Windows system running MATLAB R2021a, if the folderC:\ProgramData\MATLAB\SupportPackages\R2021a exists and is not empty, MATLAB sets the root folder toC:\ProgramData\MATLAB\SupportPackages\R2021a_1 by default.

Example: 'C:\MATLAB\SupportPackage\R2020b'

Data Types: char

Version History

Introduced in R2016a