Editor lagging/hanging in displaying .m/.mlx files

24 ビュー (過去 30 日間)
Matt C
Matt C 2025 年 2 月 7 日 17:33
コメント済み: Matt C 2025 年 2 月 10 日 15:39
I've noticed a delay in m-files and Live Scripts displaying in the editor. The tabs are there, but they appear blank for some time period. The lag time varies from none to up to 30 seconds.ventually the text displays and it is business as usual. These are not big files at all.
I already increased the Java heap memory per another answered post. That seemed to help, but now I am back to lagging.
It seems to be the worst when I have just started MATLAB (it has initialized and says "Ready"). The variance in timing makes me think it is related to my system (i.e. memory, etc.), but everything else on my machine is running smoothly.
Anyone else experience this?

回答 (1 件)

Divyanshu
Divyanshu 2025 年 2 月 10 日 6:28
編集済み: Divyanshu 2025 年 2 月 10 日 6:29
Hello @Matt C,
If increasing the Java heap memory does not help in resolving the issue, then probably if your current working directory is on a network and has multiple files, this can introduce lag because MATLAB keeps in memory all files that were open in editor and reopen it next time when you start MATLAB again.
You can refer the following MATLAB answer thread for details:
If the issue still persists you can reach out to MathWorks Technical Support.
  1 件のコメント
Matt C
Matt C 2025 年 2 月 10 日 15:39
Thanks for the reply. Clearing the command window history ended up fixing the issue.
Changing the CD to a less crowded folder didn't seem to have an effect. I only have one file open in the editor. It makes sense that working on a network drive could slow down opening, but this was not the issue in my specific case.

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

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by