필터 지우기
필터 지우기

Error when running run section

조회 수: 12 (최근 30일)
Maria Lazzaroni
Maria Lazzaroni 2022년 2월 21일
댓글: Rik 2022년 10월 21일
I get this error when I run: "run section" from the editor tab
Error using builtin
Must be a text scalar.
Error in matlab.internal.editor.eval.TempFolder/get.CurrentFolder
Error in matlab.internal.editor.eval.TempFolder/getFolderOnPath
Error in matlab.internal.editor.eval.TmpFilePath.get
Error in matlab.internal.editor.evaluateCode
However, if I run the code in that section using "Evaluate selection" it works fine.
Thank you

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022년 2월 21일
In general, executing the cell modes of scripts is more sensitive on syntax errors made in other sections sections of the code. Executing the selected section of the code doesn't encount the rest of the code.
From your prompted errors, it looks like that you have some errs in other sections of your script. Scan your code and you will see red highlights on the left sidebar of the editor.
  댓글 수: 5
Alexander Smith
Alexander Smith 2022년 9월 5일
is matlab addressing/fixing this issue? syntax errors in other sections should not affect the ability to execute code in given section.
Rik
Rik 2022년 10월 21일
Comment posted as flag by Sascha Senck:
Run sections: Important issue for usability & debugging

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by