MATLAB Function Reference
  Go to function:
    Search    Help Desk 
matlabroot    Examples

Root directory of MATLAB installation

Syntax

Description

rd = matlabroot returns the name of the directory in which the MATLAB software is installed.

Example

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.



[ Previous | Help Desk | Next ]