MATLAB提示“xxx is not found in the current directory”

要确保“current Folder”的值是运行文件xx.m的路径,如下图

具体操作只要选择提示框中的“Change MATLAB current folder”即可,也可以手动设置:

点击上图中的“Browse for folder”即可选择xxx.m所在文件夹

原文地址:https://www.cnblogs.com/YuanShiRenY/p/14214873.html