Run Section funcionality isn't working

조회 수: 13 (최근 30일)
Enrique Augusto Muñoz Soerensen
답변: Steven Lord 2022년 2월 9일
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.

답변 (1개)

Steven Lord
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.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by