MATLAB workspace not showing variables but a struct called 'wng'

4 views (last 30 days)
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
Sulaymon Eshkabilov on 8 Sep 2020
did you use: >> clear all?
and restart your pc?

Steven Lord
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
Walter Roberson on 8 Sep 2020
Your startup.m contains a line such as
wng = warning('off')

Bohao Zhang
Bohao Zhang on 10 Sep 2020
Thanks for answering this question. The problem is about a third-party toolbox called IntLab_V12. There's one struct called 'wng' that handles all the warning.

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!