'fl:filesy​stem:PathN​otFound' was caught. error came back

조회 수: 31 (최근 30일)
Matthew
Matthew 2024년 6월 6일
답변: Ayush Singh 2024년 6월 18일
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

답변 (1개)

Ayush Singh
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:
  1. 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.
  2. 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.
  3. 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.
addpath('path/to/your/directory');
Hope the above steps help you!

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by