Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用pwd函数在 MATLAB R2016a 的应用程序设计器中生成当前路径,但此函数找到 MATLAB 当前文件夹(MATLAB 的主窗口)而不是应用程序设计器当前文件夹。我应该怎么办?
pwd
我也在寻找你问题的答案。在您问题的评论中,问题中最难的部分是“excaza”给出的。但我最终使用了:
[directory,~,~] = fileparts(mfilename('fullpath'));
祝你好运