
In this lecture we will discuss about another flow control method – Loop control. A loop control is used to execute a set of commands repeatedly The set of commands is called the body of the loop.
MATLAB has two loop control techniques
Counted loops - executes commands a specified number of times.
Conditional loops - executes commands as long as a specified expression is true.
The counted loops are called ‘for’ loop and the...