Run Section funcionality isn't working
조회 수: 13 (최근 30일)
이전 댓글 표시
Lately I've become a huge fan of editing my scripts in sections and running each part for testing or in order to execute only the part that I need without executing the whole code.
Basically I follow de instructo¡ions in this page:
But suddenly the functionality stopped working, I click on the blue bar at the left or the "Run Section" button and it doesn't do anything.
댓글 수: 0
답변 (1개)
Steven Lord
2022년 2월 9일
Look in the upper-right corner of the Editor window. Do you see a red square or a red circle with an exclamation point in it? That indicates Code Analyzer has detected an issue that will prevent your code from successfully running. I believe the functionality to run sections requires your code to be syntactically valid, so try correcting the issues Code Analyzer has flagged with red. You can click on the red lines in the gutter below that red square or circle to jump to that line.
I suspect when that icon is either orange (Code Analyzer found issues, but they represent potential inefficiencies or areas for improvement in your code rather than ones that would prevent your code from executing to completion) or green you will be able to run sections.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!