Can not see the variable when double clicks them on workspace
80 views (last 30 days)
Show older comments
As the attached picture shows , when I double click a variable on workspace I cannot see the exact number. Thanks for any one who can helps.
14 Comments
Oleg S
on 6 Oct 2025 at 11:00
Edited: Oleg S
on 6 Oct 2025 at 11:07
I also get this regularly, as if the Variable Viewer crashes. Both in 2025a and 2025b.
I usually have tables collected in a struct and Variable Viewer typically stops opening some of the tables. For example, data(1).tab doesn't open but data(1).tab2 does. Additionally, using openvar data(1).tab doesn't work, while openvar data(1).tab2 does.
The issue isn't limited to struct variables, however, it's just how I discovered it.
The only other clue is that when the Variable Viewer stops opening the variables, at least in the tables in a struct case, the Variable tab of the top menu message switches from "No plots for selection" to "Select variable to plot".
Restarting Matlab solves it but eventually it starts again. I tried regenerating the preferences folder as suggested by Govind KM below, doesn't help.
Gary
on 6 Oct 2025 at 16:10
I am also experiencing this with both 2025a and 2025b on both Mac and Windows. The behavior is very inconsistent. For some variables, I can initially open them from the workspace by double clicking. A few minutes into my session, I will be unable to open the variables by double clicking. Sometimes when doing this, it will open a variable viewer window and not show anything (it seems to be stuck on loading the actual content of the variable). Other times, double clicking a variable does absolutely nothing. I've tried resintalling, regenerating my preferences folder, etc. Nothing seems to fix this. Until this is resolved, all 2025 versions are completely unusable for me.
Answers (1)
Govind KM
on 17 Jul 2025
Similar to the comments, I was also not able to reproduce this issue in MATLAB R2025a on Windows 11.
This issue might be caused due to a corrupted MATLAB Preferences file. Kindly try regenerating the MATLAB preferences using the steps mentioned in the following MATLAB answer: https://www.mathworks.com/matlabcentral/answers/99625-how-do-i-regenerate-my-matlab-preferences
It is also possible that there is either a variable in your workspace, or a function/script in your current folder/path that has the same name as an internal MATLAB function, leading to the issue. Kindly use the "restoredefaultpath" and "rehashtoolboxcache" functions to perform initial troubleshooting, using the steps mentioned in the following MATLAB answer: https://www.mathworks.com/matlabcentral/answers/2052722-how-can-i-perform-initial-troubleshooting-of-matlab-or-simulink-errors
1 Comment
Maksim
on 22 Oct 2025 at 12:53
Even if it is, then Matlab corrupts this file very easily. I found it is enough to change position of any Matlab GUI elements, like close tabs in editor or reposition any toolbars, to have this situation when I cannot view content of cell arrays. It seems as if the pref file is corrupted by Matlab itself. Seems like a bug to me.
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!