Get root folder of support packages
gets root folder of the current support packages. MATLAB® installs all support packages to this location.
installDir = matlabshared.supportpkg.getSupportPackageRoot
Set and Get Custom Support Package Root
to change the installation folder for support packages. You need administrative
privileges to use this function.
getSupportPackageRoot to check
that the change was successful.
ans = C:\MATLAB\CustomSupportPackageRoot
installDir — Root folder of support packages
Root folder of support packages, returned as a character vector.
The default location of the root folder is platform specific:
current MATLAB release and
is your Linux and macOS user
If a folder exists at the default location and is not empty, MATLAB sets the root folder location to the default location appended
_n. For example, on a Windows system running MATLAB R2021a, if the folder
and is not empty, MATLAB sets the root folder to
Introduced in R2016a