Financial Toolbox    

Transposing Matrices

Sometimes matrices are in the wrong configuration for an operation. In MATLAB, the apostrophe or prime character (') transposes a matrix: columns become rows, rows become columns. For example,

produces


  Referencing Matrix Elements Matrix Algebra Refresher