4. Arrays

All of the computations considered so far involve single (scalar) numbers. One of the powers of MATLAB is its ability to do computations on arrays, where the same operation is performed on all numbers in a data array using a single command. Special types of arrays such as matrices and vectors will be discussed in more detail in Section 9, as will mathematical operations specific to them.