MATLAB root folder
mr = matlabroot
returns a character vector giving the full
path to the folder where MATLAB® is installed. Use matlabroot
to create a path to
MATLAB and toolbox folders that is independent of platform, MATLAB version, or installation location.
fullfile
| path
| toolboxdir