MATLAB Function Reference | Search  Help Desk |
matlabroot | Examples |
Root directory of MATLAB installation
rd = matlabroot
rd = matlabroot
returns the name of the directory in which the MATLAB software is installed.
fullfile(matlabroot,'toolbox','matlab','general','')
produces a full path to the toolbox/matlab/general
directory that is correct for the platform it is executed on.