Run Section funcionality isn't working
显示 更早的评论
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
2022-2-9
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Language Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!