"unable to resolve the name" error while using readmatrix function

조회 수: 58(최근 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
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
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.
A similar question has been answered here,here and here
  댓글 수: 1
Walter Roberson
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

댓글을 달려면 로그인하십시오.

추가 답변(0개)

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by