"unable to resolve the name" error while using readmatrix function
12 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I've got this error message while running a program in MATLAB 2020b:
Error using readmatrix: Unable to resolve the name matlab.io.internal.functions.FunctionStore.getFunctionByName.
Previously in 2020a version I had no problem using the program with readmatrix...
I appreciate any idea why it is happening.
1 件のコメント
Walter Roberson
2021 年 2 月 17 日
What shows up for
ls(fullfile(matlabroot, 'toolbox/shared/io/general/+matlab/+io/+internal/+functions/FunctionStore.m'))
If it says the directory does not exist then you have a corrupted version of MATLAB for sure. The directory should have 11 files in in R2020b.
採用された回答
Sourabh Kondapaka
2021 年 2 月 17 日
It could be because some file in your current working directory or MATLAB search path is conflicting with MATLABs inbuilt files. Check if you have a file named “readmatrix.m” in your current working directory or in your MATLAB search path.
1 件のコメント
Walter Roberson
2021 年 2 月 17 日
That particular error message would not show up if the user had their own readmatrix; that is an accurate copy of the name of nearly the only function called by readmatrix.m in R2020b
その他の回答 (2 件)
Paul Ogunniran
2023 年 6 月 5 日
Another likely cause (at least in my case) is that you might have a pathdef.m file in your current path that got saved from the old matlab. In that case you have to overwrite it with paths of the new matlab version (Basically open Paths in the tabs and overwrite the old file)
0 件のコメント
Scott Milster
2024 年 2 月 29 日
編集済み: Scott Milster
2024 年 2 月 29 日
I got a similar error. What finally fixed it is I opened up "Set Path" and reset all the paths to "Default". So far it's found everything now.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!