Run Section funcionality isn't working

31 visualizaciones (últimos 30 días)
Enrique Augusto Muñoz Soerensen
Enrique Augusto Muñoz Soerensen el 9 de Feb. de 2022
Respondida: Steven Lord el 9 de Feb. de 2022
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.

Respuestas (1)

Steven Lord
Steven Lord el 9 de Feb. de 2022
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.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by