Matlab is not showing my workspace variables, even though they do exist

147 Ansichten (letzte 30 Tage)
Nils van der Gaag
Nils van der Gaag am 14 Sep. 2023
Kommentiert: Walter Roberson am 7 Dez. 2025 um 4:54
I recently installed the R2023a version of Matlab, and after a few days of using it without any problems, the vairables in my workspace are not showing up anymore. My script runs without any errors, and I can see that the variables are indeed created when I hover my mouse over the workspace section. It seems like this is just a visual bug..
Does someone know if this is fixable? Restarting Matlab doesn't work.
  10 Kommentare
Peter
Peter am 6 Dez. 2025 um 23:32
Matlab used to be my friend, but not anymore. The entire software industry suffers from not being fit for purpose and does not do what it is supposed to do. My veiw is if an 80 year old cannot use it, then it is not fit for purpose. Look at cars today, they want to make you breakfast. IT could learn a lot about customer focus from the auto industry. All I can say is I am glad I don't pay for this software, work does.
Good bit of advice to software vendors, stop trying to make a consumer product out of a sell once only thing. This is what is holding software industry back. I brought a car 3 years ago, not had a single problem, it works every time always. If only software could do that. You have vendor objectioves that are nothing to do with me and make your products unworkable.
Sorry but I suffer from software rage, frequently. I wonder how many IT people get abused becuase of bad software. You should not have to have an IT degree to use this stuff and get it to work. This is what I use AI for, to nagvigate bad software. Sorry matlab, but I cannot see my variables and there does not seem to be a solution to what would be a fundamental user need. (A bit like MS word's intermitent spellchecker, the one thing you would like a word processor to do is check the spelling). I still use pencil, paper, stone tablet and chisel because I know they work.
Could I ask Matlab please when you do have some code that actually works, set it in stone so it never changes, please.
Certainly not worried about machines taking over the world, the software will never be up to it.!!!
Walter Roberson
Walter Roberson am 6 Dez. 2025 um 23:42
The majority of the reported cases of this situation, were traced back to incompatibilities in Linux versions. Avoiding the problem would require that Linux never changes... including no security upgrades to the basic libraries. And that there be no new Linux distributions.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Pooja Kumari
Pooja Kumari am 21 Sep. 2023
Dear Nils,
It is my understanding that you are facing issue with no variables in workspace after successful execution of script with R2023a version of MATLAB. I hope that you are facing this issue only with this MATLAB script and other scripts are working fine with all the variables being created and shown in workspace.
There are few troubleshooting steps that are given below:
  1. Variables in your workspace may not be visible because you are working with function files instead of script files. One important distinction between scripts and functions is that functions have their own separate workspace. This means that any calls to a function do not overwrite the values in the base workspace. You can refer to the below documentation for more details on function vs scripts: https://www.mathworks.com/help/matlab/matlab_prog/scripts-and-functions.html
  2. The scope of variables defined within a function is limited to that specific function. Once the function is exited, these variables vanish and are no longer accessible.
  3. To view the function workspace, you can add breakpoints in your code by clicking to the left of the code (next to the line number). This allows you to step through the code and examine the function workspace. You can refer to the below documentation for more information on breakpoints: https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html
  4. Currently, even if there are no variables in the workspace, attempting to delete variables will prompt a pop-up message stating that the variables in the workspace will be deleted.
Another troubleshooting step will be signing out of MATLAB and again signing in. If the issue persists, try re-installing MATLAB.
Regards,
Pooja Kumari
  6 Kommentare
Peter
Peter am 6 Dez. 2025 um 23:44
Should not have to do a complete re-install to solve this. Come on Matlab sort it out, we pay a lot for this software and it is no longer delivering. If I have do do stuff like this then Lynix is looking good, it does not cost anything and it has plenty of forums to fix things. Your jobs are on the line and frankly your future looks bleak if you cannot do the basics for us.
Walter Roberson
Walter Roberson am 7 Dez. 2025 um 4:54
"Austin Self (Born: August 17, 2001 [age 24]), better known online as Lynix (also known as Lynixity), is an American gaming YouTuber who streams on Twitch, and can be seen in various Doni Bobes videos"
""Lynix" software refers to various IT companies and projects, most notably a Belarusian firm developing custom ERP/CRM solutions, often within the SAP ecosystem, and related entities like Lynix Business Solutions (web/app dev) or Lynix Techno-Solutions (IT/Ed-Tech)."
It is not clear which of those you are referring to.

Melden Sie sich an, um zu kommentieren.


Marek
Marek am 13 Okt. 2025
Your varialbes are there, you just cant see them. Just move the slider on the bottom right all the way to the left.

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by