Financial Toolbox    

Referencing Matrix Elements

To reference specific matrix elements use (row, column) notation. For example,

You can enlarge matrices using small matrices or vectors as elements. For example,

adds another row to the matrix and creates

Likewise,

adds another column and creates

Finally, the colon (:) is important in generating and referencing matrix elements. For example, to reference the par value, coupon rate, and coupon frequency of the second bond.


  Using Matrix Functions for Finance Transposing Matrices