Financial Toolbox    

Operating Element-by-Element

Finally, element-by-element arithmetic operations are called array operations. To indicate an array operation in MATLAB, precede the operator with a period (.). Addition and subtraction, and matrix multiplication and division by a scalar, are already array operations so no period is necessary. When using array operations on two matrices, the dimensions of the matrices must be the same. For example, given vectors of stock dividends and closing prices


  Solving Simultaneous Linear Equations Function Input/Output Arguments