FreeMat

- Main Page
- Related Pages

TRANSPOSE Matrix Transpose Operator

Section: Mathematical Operators

# Usage

Performs a transpose of the argument (a 2D matrix). The syntax for its use is

      y = a.';

where `a` is a `M x N` numerical matrix. The output `y` is a numerical matrix of the same type of size `N x M`. This operator is the non-conjugating transpose, which is different from the Hermitian operator `'` (which conjugates complex values).

# Internals

The transpose operator is defined simply as

where `y_ij` is the element in the `i`th row and `j`th column of the output matrix `y`.

# Examples

A simple transpose example:

    --> A = [1,2,0;4,1,-1]

    A =
      1  2  0
      4  1 -1

    --> A.'

    ans =
      1  4
      2  1
      0 -1

Here, we use a complex matrix to demonstrate how the transpose does not conjugate the entries.

    --> A = [1+i,2-i]

    A =
       1.0000 +  1.0000i   2.0000 -  1.0000i

    --> A.'

    ans =
       1.0000 +  1.0000i
       2.0000 -  1.0000i