필터 지우기
필터 지우기

Editor slows down for long lines of text

조회 수: 3 (최근 30일)
David De Lorenzo
David De Lorenzo 2023년 11월 28일
답변: Angelo Yeo 2024년 4월 9일
In the MATLAB Editor, it's sometimes convenient to create a new variable by pasting the output from another tool. When that other tool can create formatted output, i.e., 80-character rows of data each of which end with "; ...", then the line lengths into the Editor are manageable.
However, when a tool just blasts a long text vector, perhaps comma-delimited floating-point values, then the line length into the Editor can get >>1,000 characters. When this happens, editing such a line of text, perhaps to put a "];" terminator, takes a long time.
Based on another answered question (link), I did check some MTree settings, and the code parser seemed to already be disabled:
>> com.mathworks.services.Prefs.getBooleanPref('CodeParserServiceOn')
ans =
logical
0
>> com.mathworks.services.Prefs.getIntegerPref('CodeParserServiceFileSizeLimit')
ans =
0
What does work is to paste the text into Notepad++ and do my editing over there [e.g., adding plot commands], and then saving as an m-file. However, I don't get the convenience of running the code snippet right from the MATLAB Editor with (Ctrl+Enter). Is there any guidance or workaround?
Thanks,
Dave.
  댓글 수: 4
Walter Roberson
Walter Roberson 2023년 11월 28일
Question: are you using the Beta desktop?
David De Lorenzo
David De Lorenzo 2023년 11월 28일
I don't think I've installed the Beta desktop.

댓글을 달려면 로그인하십시오.

답변 (1개)

Angelo Yeo
Angelo Yeo 2024년 4월 9일
Thank you for your patience. There is no workaround, but it should be handled by program updates. Please reach out to technical support team if you want to be kept updated on the issue. In short, this is being handled by MATLAB Editor team.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by