Failed to open any .m file in Matlab, cmd pops out shows 'The system cannot find the path specified.' 无法在MATLAB中​打开任何.m脚本和函​数文件,点击打开后弹​出cmd弹窗并显示“​系统找不到指定的路径​”。尝试过重装Mat​lab,工作路径没出​错。

조회 수: 6 (최근 30일)
I Failed to open any .m file in Matlab, cmd pops out shows 'The system cannot find the path specified.'
我每次在Matlab里打开任何.m文件都会弹出命令行,显示“系统找不到指定的路径。”我已经重装过Matlab了,但是问题还是没解决。检查过工作路径,并没有问题。我发现Matlab自带的案例脚本和函数也打不开。

답변 (1개)

Meet
Meet 2023년 3월 7일
This might happen if you have not added the path to your MATLAB workspace. Please try the below steps:
1). Open MATLAB and navigate to the directory on which you want to work
2). Right click on that directory
3). Go to ‘Add to Path’ option and select ‘Selected Folder and Subfolders’
4.) Try opening any .m file from the directory that you added.
If error still persists, then provide the steps to reproduce the error.

카테고리

Help CenterFile Exchange에서 启动和关闭에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!