Why use an "if" statement to encapsulate a block of code?
Mostra commenti meno recenti
I notice that many users encapsulate their code inside an if statement such as
if true
...
(code)
...
end
What is the purpose for this? Is it variable scoping?
2 Commenti
Bob Thompson
il 2 Mar 2018
Are you talking about here on the forums? They do that simply because when you push the "{}Code" button it pops up that stuff automatically.
Jim Riggs
il 2 Mar 2018
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Historical Contests 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!