Error "Unable to resolve name" issue

조회 수: 1,527 (최근 30일)
Paul Kelly
Paul Kelly 2019년 9월 13일
댓글: Walter Roberson 2023년 10월 10일
I recently updated to 2019b and since then I have been having problems with certain functions. For example I get the following error:
Unable to resolve the name mSIPRO.file.gConfig.load.
The folder structure is below and the function is located in +gConfig
Capture.PNG
I have had this folder structure and this particular function for many years and have been using it on a regular basis without issue.
I tried changing the name to "gLoad" but I got the same error.
Is this due to some change to 2019b, or due to an installation problem, or is it likely I have made a change that has made my code unusable?
  댓글 수: 2
Ravneet Kaur
Ravneet Kaur 2021년 6월 10일
function y=temperature(K)
global Kp;
global Ki;
global Kd;
Kp(1)=0;
Ki(1)=0;
Kd(1)=0;
Kp(2)=K(1);
Ki(2)=K(2);
Kd(2)=K(3);
x=out.out();
s=size(x);
e=0;
This is my code for matlab and i am facing the same issue of unable to resolve the name out.out Can anyone please help me with this? I have tried the restoredefaultpath command but that does not helped me.
Walter Roberson
Walter Roberson 2021년 6월 10일
You have not used "import" to import any java path or package, and it is not obvious to us that you have a package directory +out or a class directory @out in your MATLAB path. "out" is not a class or package provided by Mathworks, and you do not appear to have any struct or class variable named out in your workspace.

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

채택된 답변

Cam Salzberger
Cam Salzberger 2019년 9월 13일
Hello Paul,
Please make sure that the parent folder to the "+mSIPRO" directory is on the MATLAB search path. Once you update the path, call rehash to update the cache.
Also, since we can't see it in the image, make sure that the "+gConfig" directory does contain the "load" function.
You can also try calling "which -all mSIPRO.file.gConfig.load" to ensure that the correct function is accessible and not shadowed by another file.
-Cam
  댓글 수: 1
Paul Kelly
Paul Kelly 2019년 9월 16일
편집: Paul Kelly 2019년 9월 16일
Thanks Cam,
this all worked but I found I had to set the path to "Default" first.

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

추가 답변 (1개)

kannan R
kannan R 2023년 10월 10일
Unable to resolve the name 'ij01366.xml'.
  댓글 수: 1
Walter Roberson
Walter Roberson 2023년 10월 10일
You have a line of code that probably looks something like
readstruct(ij01366.xml)
when you would instead need
readstruct('ij01366.xml')

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by