what happened to the blue bar in my Matlab user interface?

12 ビュー (過去 30 日間)
Richard Goldberg
Richard Goldberg 2023 年 12 月 19 日
コメント済み: Dyuman Joshi 2023 年 12 月 20 日
One way to start execution of a script is to click on the blue vertical bar to the left of the code. Unfortunately, this bar has recently disappeared from my version of Matlab. This happened while I was using 2023a and there is still no blue bar even after I upgraded to 2023b. I am using a Mac. Can you help me figure out how to get the blue bar to reappear?
  9 件のコメント
Cris LaPierre
Cris LaPierre 2023 年 12 月 20 日
Looks like it was introduced to m-files in R2021b

サインインしてコメントする。

採用された回答

Richard Goldberg
Richard Goldberg 2023 年 12 月 20 日
OK, problem solved! I followed the instructions here to regenerate my preferences: https://www.mathworks.com/matlabcentral/answers/99625-how-do-i-regenerate-my-matlab-preferences
For step 2, it's important to create an empty folder with the original name, so that Matlab generates a new set of preferances instead of copying the preferences from another version. I forgot to do that the first time and it didn't work, but did it properly the second time and it was successful!

その他の回答 (1 件)

Image Analyst
Image Analyst 2023 年 12 月 19 日
The blue margin indicates the extent of the section you are in, meaning that the blue bar runs from the starting line of the section until the last line of the section. If you don't have any sections (started by a double %) then you should have the blue bar since it's all one section. If you have two sections it will appear if you're cursor is in the section and the section is displayed and you hover the mouse over the margin. If the current section is scrolled off the screen, then hovering over the margin will not show blue because the section is not in the viewport. If you click in the viewport, now the current section and displayed section are both visible and you will get a blue margin upon hovering the mouse.
  1 件のコメント
Richard Goldberg
Richard Goldberg 2023 年 12 月 20 日
編集済み: Richard Goldberg 2023 年 12 月 20 日
Yes, I completely agree with what you write above. But as you can see from my screenshots above, something has happened to my Matlab settings on my Mac to cause the blue bar to disappear. It used to be there but now it's gone. And when I open the same file on a different computer, it is there. I can't find any settings that would affect this, and I'm wondering if there is some settings file buried in the installation that I can change or delete to fix it.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by