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,
Cash = [1500 4470 5280 -1299]'
produces
Cash = 1500 4470 5280 -1299
![]() | Referencing Matrix Elements | Matrix Algebra Refresher | ![]() |