- Ensure that you have the necessary permissions to access the file or directory. Lack of permissions can lead to errors when attempting to read from or write to a file or directory.
- Relative paths depend on the current working directory, which might not be what you expect, especially in a complex project or when running scripts and functions from different directories. Try using absolute paths to specify the file or directory location explicitly.
- If the error pertains to a MATLAB function or file that should be accessible, ensure that its containing folder is on the MATLAB path. You can add directories to the MATLAB path using the 'addpath' function.
'fl:filesystem:PathNotFound' was caught. error came back
51 ビュー (過去 30 日間)
古いコメントを表示
I have a MATLAb script and simulink model that keep givening an error when building:
Error:STD exception 'class mwboost::exception_detail::clone_impl<class fl::filesystem::PathNotFound>': 'fl:filesystem:PathNotFound' was caught.
I had fixed the error by closing MATLAB, deleating the slprj folder, and then reopeingin and building the model. After building the model it created another slprj folder and ran fine. After working on the model a bit more I closed MATLAB and came back to it after. Now I'm getting the same errorl; however, feleating the folder and reloading MATLAB does not solve the issue. I cannot find any reasoruce on the error with a suggestion besides what I have already tried.
Thanks
0 件のコメント
回答 (1 件)
Ayush Singh
2024 年 6 月 18 日
Hi Matthew,
The 'fl:filesystem:PathNotFound' error in MATLAB indicates that MATLAB cannot find a specified file or directory path. This error is often encountered when using file or directory operations such as reading, writing, or navigating the file system.
You can try out few troubleshooting steps below:
addpath('path/to/your/directory');
Hope the above steps help you!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!