フィルターのクリア

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

51 ビュー (過去 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 Center および File ExchangeSimulink についてさらに検索

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by