- 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
65 次查看(过去 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!