Why use an "if" statement to encapsulate a block of code?
Ältere Kommentare anzeigen
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 Kommentare
Bob Thompson
am 2 Mär. 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
am 2 Mär. 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Historical Contests finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!