Error: Live Editor Run Section
조회 수: 5 (최근 30일)
이전 댓글 표시
My scirpt has multiple sections. I intentially leave a few lines incomplete for demo purpose. When I run Section One, the error massage pops up in Section Two ( I hit "Run Section
" in Section One ! ). It seems before the compiler ran a particular section, it worked through the entire live editor script. If there is any errors, it refuses to run a section.
![Capture2.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/269517/Capture2.jpeg)
In short, how to run one section in live editor when errors present in other sections?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/269516/image.jpeg)
댓글 수: 0
답변 (2개)
Sahithi Kanumarlapudi
2020년 2월 5일
To know the reason why this is not working you could refer to the following link
If you want to evaluate a part of the code, you can select the respective part and press F9 (Evaluate Selection).
Maria Lazzaroni
2022년 2월 25일
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
even if I don't have any error in the selected section and elsewhere in the entire script.
Thank you
댓글 수: 1
Maria Lazzaroni
2022년 2월 25일
편집: Walter Roberson
2022년 2월 25일
참고 항목
카테고리
Help Center 및 File Exchange에서 Live Scripts and Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!