| MATLAB Function Reference | ![]() |
Graphical Interface
除了利用 cd 指令外,也可以改變MATLAB工具列中的 Current Directory
欄位來切換目錄。
Syntax
cd
w = cd
cd('directory')
cd('..')
cd directory or cd ..
Description
cd('directory')
將工作目錄切換到 directory 去。 directory必須為完整的路徑。在UNIX系統下,字元
~ 可代表使用者的根目錄。
cd('..')
將工作目錄切換到目前所在目錄的上一層。要注意的是你無法存取UNC路徑的最上層。(Note that you cannot access the top level of a UNC pathname.)
cd directory or cd ..
是不加引號的語法(is the unquoted form of the syntax.)
Examples
cd('/usr/local/matlab/toolbox/demos')
cd('C:\TOOLBOX\MATLAB\DEMOS')
cd ..
See Also
| caxis | cdf2rdf | ![]() |