Matlab M文件运行问题我将一段程序命名为try.m,保存在目录E:\Software\Matlab\work文件夹中,在M文件的编辑窗口运行之后就弹出一个对话框:File E:\Software\Matlab\work is not found in the current directory or on the
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/21 17:41:00
![Matlab M文件运行问题我将一段程序命名为try.m,保存在目录E:\Software\Matlab\work文件夹中,在M文件的编辑窗口运行之后就弹出一个对话框:File E:\Software\Matlab\work is not found in the current directory or on the](/uploads/image/z/2105096-32-6.jpg?t=Matlab+M%E6%96%87%E4%BB%B6%E8%BF%90%E8%A1%8C%E9%97%AE%E9%A2%98%E6%88%91%E5%B0%86%E4%B8%80%E6%AE%B5%E7%A8%8B%E5%BA%8F%E5%91%BD%E5%90%8D%E4%B8%BAtry.m%2C%E4%BF%9D%E5%AD%98%E5%9C%A8%E7%9B%AE%E5%BD%95E%3A%5CSoftware%5CMatlab%5Cwork%E6%96%87%E4%BB%B6%E5%A4%B9%E4%B8%AD%2C%E5%9C%A8M%E6%96%87%E4%BB%B6%E7%9A%84%E7%BC%96%E8%BE%91%E7%AA%97%E5%8F%A3%E8%BF%90%E8%A1%8C%E4%B9%8B%E5%90%8E%E5%B0%B1%E5%BC%B9%E5%87%BA%E4%B8%80%E4%B8%AA%E5%AF%B9%E8%AF%9D%E6%A1%86%EF%BC%9AFile+E%3A%5CSoftware%5CMatlab%5Cwork+is+not+found+in+the+current+directory+or+on+the)
Matlab M文件运行问题我将一段程序命名为try.m,保存在目录E:\Software\Matlab\work文件夹中,在M文件的编辑窗口运行之后就弹出一个对话框:File E:\Software\Matlab\work is not found in the current directory or on the
Matlab M文件运行问题
我将一段程序命名为try.m,保存在目录E:\Software\Matlab\work文件夹中,在M文件的编辑窗口运行之后就弹出一个对话框:File E:\Software\Matlab\work is not found in the current directory or on the Matlab path 后面有三个选项: A:Change Matlab Current directory B:Add directory to the top of the Matlab path C:Add directory to the bottom of the Matlab path 但是选任何一个都没有反应,我用which函数找了下try.m的当前路径没有错,是怎么回事呢?
程序肯定没有错,是教案上的.
Matlab M文件运行问题我将一段程序命名为try.m,保存在目录E:\Software\Matlab\work文件夹中,在M文件的编辑窗口运行之后就弹出一个对话框:File E:\Software\Matlab\work is not found in the current directory or on the
文件名和Matlab中自带的函数重名了,运行你的程序时并非运行的你的程序,建议将try.m改名就行了.
三个选项选A就可以了;
A表示将文件所在路径作为当前工作路径;
B和C分别表示将路径增加到Matlab的搜索路径中去,除非是想从任何路径都调用该程序,一般不加到搜索路径中去.