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 comentarios

Shubham Gupta
Shubham Gupta el 8 de En. de 2019
Editada: madhan ravi el 9 de En. de 2019
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 el 9 de En. de 2019
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 el 9 de En. de 2019
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 el 8 de Feb. de 2020
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.

Iniciar sesión para comentar.

Respuestas (1)

magie
magie el 29 de Nov. de 2019
Editada: magie el 29 de Nov. de 2019

1 voto

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.

Categorías

Productos

Versión

R2016b

Preguntada:

el 7 de En. de 2019

Comentada:

el 9 de Feb. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by