run code sections in matlab R2017b.
Mostra commenti meno recenti
when I run a code section, matlab R2017b now check for errors in the entire script, not just on the section to be executed (as it used to be in older versions). Is this a bug or is it in purpose?
I am using mac OS Sierra 10.12.6 (if that is of any relevance)
thanks. Claudio
3 Commenti
M
il 30 Ott 2017
It is strange because I am also using Matlab 2017b and for me it is not the case.
Rik
il 30 Ott 2017
I think it does check for syntax errors like unmatched parentheses, as those could affect what code should be run.
Claudio Altafini
il 31 Ott 2017
Risposte (1)
Prasanth Sunkara
il 28 Nov 2017
0 voti
Hello Claudio,
This behavior is by design. Having this capability allows section evaluation to access local functions which seems desirable.
-Prasanth
3 Commenti
Claudio Altafini
il 28 Nov 2017
Rik
il 28 Nov 2017
You can use %{ and %} to comment out blocks of code (or you can use the comment out button in the editor lint).
I hadn't considered that it had something to do with in-script-functions (which I think will encourage horrible coding practices).
Chad Greene
il 28 Feb 2018
What a frustrating design change! Any chance we'll ever get a Preference option to change it back?
Categorie
Scopri di più su Performance and Memory in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!