MATLAB workspace not showing variables but a struct called 'wng'
Show older comments
I'm using MATLAB R2019B. My MATLAB workspace won't show any variables I claimed in the scripts or in the command window. Instead, it always shows a struct called 'wng'.
My MATLAB did crashed before I noticed this issue. It happens during plotting a figure. But I didn't pay any attention to these so I forgot what warnings or errors MATLAB returned to me exactly. I restarted MATLAB and found this problem. Then no matter how many times I restarted, the workspace wouldn't change any more.


Answers (4)
Sulaymon Eshkabilov
on 8 Sep 2020
0 votes
did you use: >> clear all?
and restart your pc?
Steven Lord
on 8 Sep 2020
Are you calling the built-in who function or a who.m that you've written or downloaded? What does this display?
which -all who
Walter Roberson
on 8 Sep 2020
Your startup.m contains a line such as
wng = warning('off')
Bohao Zhang
on 10 Sep 2020
0 votes
1 Comment
Walter Roberson
on 10 Sep 2020
It sounds as if your startup.m has a call to initialize that toolbox.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!