To take the transpose of a matrix A
, you can use the '
(conjugate transpose) or .'
(transpose) operators.
Here's an example code:
main.m174 chars7 lines
This will output:
main.m126 chars13 lines
Here, both B
and C
are the transpose of matrix A
. The difference between the two operators is that '
also performs complex conjugate of the matrix elements, while .'
only takes the transpose.
gistlibby LogSnag