function rootDir = matlabroot
%MATLABROOT Root directory of MATLAB installation.

%       Copyright (c) 1984-93 by The MathWorks, Inc.

rootDir = getenv('MATLAB');
