How to display row numbers in variable view?

6 次查看(过去 30 天)
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).

回答(1 个)

Prasanna Konyala
Prasanna Konyala 2022-2-15
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 个评论
Igor Gayday
Igor Gayday 2022-2-16
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 2022-2-18
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by