Problem in command window and workspace .

2 views (last 30 days)
Shikha
Shikha on 6 Feb 2014
Answered: Shuba Nandini on 2 Mar 2023
I am using MATLAB R2013a(8.1.0.604). I could not find the solution on the web. My workspace and command window are not showing variables. When I assign a variable in command window like >>a=2 then a= 2 is not displayed on my command window and there are no variable in workspace. What should I do ?

Answers (1)

Shuba Nandini
Shuba Nandini on 2 Mar 2023
Hi Shikha,
I understand that you are having an issue displaying the variables on Command window and Workspace. There are some troubleshooting steps that you can try:
1. Check the MATLAB Preferences to make sure that variables are set to be displayed in Command Window and Workspace. To set Command Window Preferences, please refer to this link: Set Command Window Preferences - MATLAB & Simulink (mathworks.com)
2. Check the format of the Output. Sometimes MATLAB may set to display output in a format that hides the variables. Try changing the format of the output to “long” or “short” by running the format command. To know how format command works, please refer this link: Set output display format - MATLAB format (mathworks.com)
3. Check the value of the “format compact”. This command removes extra white space in the output, which can sometimes hide the display of variables. To check more about this command, please refer this link: Format Output - MATLAB & Simulink (mathworks.com)
4. To make variables visible on the Workspace, try reloading it by clicking on the “Refresh” button in the Workspace window or by typing “clc” or “clear all” command.
If none of these steps works, you may need to update your version of MATLAB to a more recent version that is compatible.
Thanks

Community Treasure Hunt

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

Start Hunting!