Friday, 29 July 2016

MATLAB Programming 38 - Loop Control Statements

Loop Control Statements


Loop control statements change execution from its normal sequence. When execution leaves a scope, all automatic objects that were created in that scope are destroyed.

MATLAB supports the following control statements. Click the following links to check their detail.

break statement - Terminates the loop statement and transfers execution to the statement immediately following the loop.

continue statement - Causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.

No comments:

Post a Comment