フィルターのクリア

Cannot access files in path or current folder

30 ビュー (過去 30 日間)
Deena Dayalan
Deena Dayalan 2021 年 8 月 16 日
回答済み: zhi W 2023 年 3 月 2 日
I have files in matlab files in 'F:\Matlabb_files' folder.This folder is the current folder and this folder plus all its subfolder are in the path,but i cannot access the files directly when i press 'Run' command.I tried to manually delete and add these folders using the GUI but also it didn't help.I tried to add these using 'addpath' command,'userpath' command and 'savepath' commands.In 'pathdef.m' files,i can see all the newly added files,but while running,it always throws the same error 'File not found in current folder or MATLAB path'
I tried to press 'Change folder' and 'Add to path' option on every run,but it poped up everytime.
Please help me how to stop this error.
  11 件のコメント
Walter Roberson
Walter Roberson 2021 年 8 月 17 日
Long shot here:
Please check to be sure that the F: drive has 8.3 filesystem names enabled.
Deena Dayalan
Deena Dayalan 2021 年 8 月 17 日
@Walter Roberson You caught my problem exactly.when i run the function again it shows the message again.what do you mean by '8.3 filesystem' ?

サインインしてコメントする。

回答 (1 件)

zhi W
zhi W 2023 年 3 月 2 日
Hello, I've encountered the same problem (working with Matlab 2020a), and I went for "Home - Preferences - Current Folder" and clicked "Restore Default Settings", then I clicked "General - Toolbox path caching" and clicked "Update Toolbox Path Cache", and it magically worked. When I ran the file again there was not error reported. I'm not sure which step did the job but that's what I did. Hope it's helpful.

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by