How to display row numbers in variable view?

6 views (last 30 days)
How to display row numbers larger than 100 in the variable view? As you can see from the screenshot, they are just replaced with "1.." and I do not see a way to resize the column with row numbers (unlike others).

Answers (1)

Prasanna Konyala
Prasanna Konyala on 15 Feb 2022
Matlab default settings makes sure that the width of the column is enough to accommodate the row numbers. According to your screenshot, it seems that you have changed font setting in matlab preferences. That might be the reason for the issue you are facing. Try changing back to default setting to see if the error is resolved. I couldn’t reproduce the issue at my end with both default and custom settings. If the issue still persists after changing back to default, It can be your OS display settings that is causing the issue. Try changing OS custom display setting to resolve the issue.
Use this document to know details regarding changes within matlab preferences-https://www.mathworks.com/help/matlab/ref/preferences.html?searchHighlight=preferences&s_tid=srchtitle_preferences_1
  2 Comments
Igor Gayday
Igor Gayday on 16 Feb 2022
At the time when this screenshot was taken, I had never changed the default settings. As a workaround, I changed it later to reduce the font size, which resolved the issue. If I switch back to default, then the issue appears again. Which OS display settings do you suggest to change? I have never changed the default display settings either.
Prasanna Konyala
Prasanna Konyala on 18 Feb 2022
To restore any lost default preferences you can try the following:
Run the following command in the MATLAB command prompt in order to locate your preferences directory:
>> prefdir
This is where your "matlab" prf file is located. Rename it to "matlab.old" and reopen matlab.
If this doesn't work, try reinstalling the matlab.
And regarding OS settings, I am not sure which setting can effect as matlab behaves differently on different operating systems.

Sign in to comment.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!