Run Section funcionality isn't working
15 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Steven Lord
on 9 Feb 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.
0 Comments
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!