Chapter 4 Control flow: loops and conditional statements
Loops and conditional statements in Matlab are similar to those in other imperative programming languages. But in Matlab, array operations (Section 2.3) can often replace loops, and provide faster and shorter code. However, loops are sometimes unavoidable when the each computation depends on the result of the previous computation.
The following part of MATLAB Onramp minicourse is directly related to this chapter:
- Programming