(translator=pacific, ChineseSource=pacific-20020619-10\matlabroot.html, EnglishSource=c:\matlabr12\help\techdoc\ref\matlabroot.html)
MATLAB Function Reference    
matlabroot

回傳MATLAB的根目錄

Syntax

Description

matlabroot 回傳MATLAB軟體被安裝到的目錄。

rd = matlabroot 回傳MATLAB軟體被安裝到的目錄,並存入 rd中。

Examples

fullfile(matlabroot,'toolbox','matlab','general','')

產生produces a full path to the toolbox/matlab/general 目錄的完整路徑,這個目錄正是作業系統執行過的目錄。(produces a full path to the toolbox/matlab/general directory that is correct for the platform it is executed on.)


 matlabrc max