Matlab is not showing my workspace variables, even though they do exist
Show older comments
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 Comments
Stephen23
on 14 Sep 2023
Contact technical support:
Muhammad Tauha Ali
on 27 Sep 2023
i'm also facing the same issue with R2023b while using beta desktop dark mode. The variables appear if i minimize the workspace and then again view. just doing refresh doesn't work. The variable editor also needs to be closed and re-opened.
Image Analyst
on 28 Sep 2023
@Muhammad Tauha Ali it should not work that way. You should also call tech support.
Muhammad Tauha Ali
on 28 Sep 2023
i have submitted a bug report though of this issue through contact-us process.
Muhammad Tauha Ali
on 9 Oct 2023
this is a known MATLAB issue and perhaps will be fixed in the next release according to mathworks support. I encountered this in the desktop dark mode.
Dyuman Joshi
on 9 Oct 2023
@Muhammad Tauha Ali Could you please share the full response from MathWorks support?
Muhammad Tauha Ali
on 9 Oct 2023
not sure if it'll violate any confidentiality guidelines (moderators can remove this post if it does):
"Thank you for reporting this issue. I took your query into consideration. Please note that the “New Desktop for MATLAB” currently is in the Beta version and is still undergoing development. For a more stable and bug-free experience, I kindly recommend reverting back to the regular desktop environment.
As of now I am going ahead and closing this case. If you have any further questions regarding this case, feel free to reply to this email thread, I will be happy to reopen and assist you further."
Image Analyst
on 9 Oct 2023
@Nils van der Gaag from the screenshot you showed, it does not look like you are using the new desktop. If you were, there would be buttons in the titlebar in the upper right saying "Feedback" and "Stop New Desktop". I don't see that on your screenshot. Even if the new desktop had been installed previously, there would be a button saying "Try the new desktop" and I don't even see that so you never went into the Add-ons Explorer and downloaded the new desktop. There is some miscommunication going on here.
Peter
on 6 Dec 2025
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
on 6 Dec 2025
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.
Answers (2)
Pooja Kumari
on 21 Sep 2023
2 votes
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:
- 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
- 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.
- 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
- 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 Comments
Dyuman Joshi
on 21 Sep 2023
You seem to have misunderstood the problem - The variables exist, are present in the workspace after the (successful) execution of the script, but there is a problem with display.
This is most likely a visual bug, as OP suspects and the best way to resolve it would be to contact Support as Stephen23 has indicated.
Yau Jack
on 12 Feb 2024
Same here, Im using online matlab and variables are not showing inn workspace.
However when mouse point on top the ariables on the script, it shows the values.
Poornima T
on 26 Mar 2025
how to draw streamlines for a bvpc code
Walter Roberson
on 26 Mar 2025
@Poornima T you should create a new Question for that, as it is not related to the current discussion.
Peter
on 6 Dec 2025
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
on 7 Dec 2025
"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.
Marek
on 13 Oct 2025
0 votes
Your varialbes are there, you just cant see them. Just move the slider on the bottom right all the way to the left.
Categories
Find more on Data Type Identification 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!