5.1 Introduction
When a particular numerical tasks needs to be “repeated” over different data points, digital computers become a useful tool since they can do this with greater speed than humans. Loops perform exactly these tasks. Using a condition to check the start and termination rules, you can perform repetitive parts of a process easily. Different programming languages and environments have different rules for defining loops. MATLAB provides a much simpler way to define and run loops. They will be discussed shortly.
It’s useful to define the term function here. ...