Variable access error in Matlab

Hi there,
I never used to have this error message, when i tried to access varible workspace. Since start of this year, i am having the following error, while i "double click and open" (access) variables from workspace.
Does any one have a solution? I am running scripts in 2016b.
error_msg_matlab.PNG

댓글 수: 6

Shubham Gupta
Shubham Gupta 2019년 1월 8일
편집: madhan ravi 2019년 1월 9일
Hey, can you share us the name of the variable and what exactly is stored inside the variable (or at least what you expect, is stored in the variable since you can't open and see inside ) ?
Also, when you said "when i tried to access varible workspace" did you mean "variable inside workspace" or is there something called "variable workspace" ?
roni zidane
roni zidane 2019년 1월 9일
Hi Shubham,
Thanks for your reply. Please find attached the .png files. It does not matter what type of variable i am actually looking at (as you will see in the error messages), I get the same error, wheterh it's a single double type variable or a structure.
I have also attached the Workspace image. My apologies, if i was not so clear.
Do you have any idea why it happens? Let me know if you have any further questions.
Shubham Gupta
Shubham Gupta 2019년 1월 9일
I thought you were having this error message with only some variables so my idea was to check the name of the variables and see if it doesn't have anything unusual, same thing with the stored values into the variable, but it seems like you are getting this error for all of the variables.
I have never encountered this error message. But you can try to solve it with the below link :
Let me know how that goes
Suzan Doornwaard
Suzan Doornwaard 2020년 2월 8일
I have the exact same problem. I am using Matlab R2018b.
It's for all the variables in the workspace and I don't remember having it before (until today) and I am doing experiments so this is not the first time I am using this script.
BTW, I tried to open the above link and it gives "temporarily unavailable'' error.
Screen Shot 2020-02-08 at 10.46.29.png
What shows up for
which -all workspacefunc
The code I am looking at would give that error if you tried to openvar() a variable name that was an expression instead of a plain variable name.
Hi Walter,
Thanks for the reply. Your suggestion lead to a discovery and eventually I got rid of the issue.
This is what I did:
1) I ran the command you suggested
which -all workspacefunc
and that gave the exact same error I posted above.
2) I re-open my Matlab and I received all sorts of error regarding that has the same name with Matlab's own functions (assert, scalar) and it points out the add-on I am using in the toolbox directory of mine.
3) Funny enough, I deleted the folder but I realized I didn't remove the path to those in Matlab's path. I thought I would receive an error that would say something like "The toolbox you have in path doesn't exist anymore" for such situations but apparently not.
4) Then i simply removed those particular toolbox related paths from the Path. I restarted my Matlab and I didn't have any errors.
5) I ran the functions that I received error and I double clicked the variables this time. No error. So I realize it's simply clashing functions but for some reason the error is not specific enough to point that out or I am not experienced enough with Matlab yet. At least that's what I experienced.
I hope that helps others with the same problem.

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

답변 (1개)

magie
magie 2019년 11월 29일
편집: magie 2019년 11월 29일

1 개 추천

I have the same problem and it appeared out of the blue.
Whenever I double-click on workspace variables or sometimes even when I place the cursor into the command window or in the editor. Sometimes the error message appears when I open Matlab.
I have version 2019b. I work with it for about 2 months now - no problems until yesterday. I never experienced this error and I have been working with version 2014a for a while now.
I didn't change my codes, I do not have any shadow functions. I tried restoring default path, I even re-installed Matlab after fully de-installing the old version.
Nothing helped so far.
If you have any suggestions, thanks in advance.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2016b

질문:

2019년 1월 7일

댓글:

2020년 2월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by