Default Path not working - errors fullfile

10 ビュー (過去 30 日間)
Katharina Paul
Katharina Paul 2021 年 8 月 25 日
回答済み: Jerrod 2025 年 3 月 18 日
Dear all,
last night I had some problems with some of my functions, added them to the path, removed others and now Matlab is not working properly anymore.
I was trying to reset all the paths to default by the GUI and by
restoredefaultpath; matlabpath(strrep(matlabpath, userpath, ''))
But I receive the following error messages
Error using fullfile (line 103)
All inputs must be strings, character vectors, or cell arrays of character vectors.
Error in rmimap.StorageMapper/storageMapFile
Error in rmimap.StorageMapper
Error in rmimap.StorageMapper.getInstance
Error in rmiml.hasReqDataFile
Error in rmiml.visibleInToolstrip
I already tried to reinstall everything, but it did not change. I still get a bunch of error messages after starting Matlab (see attachment).
Thank you so much already,
Katharina

回答 (2 件)

Salman Ahmed
Salman Ahmed 2021 年 9 月 2 日
Hi Katharina,
Perform the following steps to troubleshoot your issue:
edit pathdef.m;
restoredefaultpath; % restore the MATLAB search path to the factory installed state
rehash toolboxcache; % update the cache and the list of known files for all folders on the search path
savepath; % save the updated path in the pathdef.m file
Additionally, you can refer to steps listed here.

Jerrod
Jerrod 2025 年 3 月 18 日
I know this is an old question, but I found it while trying to solve this same issue on my machine.
There was .m file named contains.m whose contents were all commented out. Which is what you would normally see if you typed:
edit contains.m
I added the directory that had that file in it to the path and got your error.
I deleted that file, and it solved the issue.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by