MATLAB 帮助中心
确定当前文件夹
pwd
currentFolder = pwd
pwd 返回 MATLAB® 当前文件夹。
currentFolder = pwd 返回当前文件夹的路径。
currentFolder
示例
全部折叠
将当前文件夹更改为本地文件夹,并存储路径。
cd c:\myMATLABFiles currentFolder = pwd
currentFolder = 'c:\myMATLABFiles'
在“当前文件夹”工具栏中查看当前文件夹。
MATLAB 当前文件夹路径,以字符向量形式返回。
全部展开
用法说明和限制:
必须启用动态内存分配才能进行代码生成。
backgroundPool
ThreadPool
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
在 R2006a 之前推出
cd | dir
cd
dir
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处