[TOC]

ctranspose

Complex conjugate transpose

Usage

ctranspose(A)

Example

Input
A = complex(rand(2,3), rand(2,3))
% Conjugate transposes
ctranspose(A)
A'
% Non-conjugate transposes
transpose(A)
A.'
Output
A = 1e-1 × 
 0.8057+0.5533i   7.8336+5.9435i   7.4668+9.0741i
 1.9300+7.0959i   0.4409+3.9925i   5.8817+5.2582i

ans = 1e-1 × 
 0.8057-0.5533i   1.9300-7.0959i
 7.8336-5.9435i   0.4409-3.9925i
 7.4668-9.0741i   5.8817-5.2582i

ans = 1e-1 × 
 0.8057-0.5533i   1.9300-7.0959i
 7.8336-5.9435i   0.4409-3.9925i
 7.4668-9.0741i   5.8817-5.2582i

ans = 1e-1 × 
 0.8057+0.5533i   1.9300+7.0959i
 7.8336+5.9435i   0.4409+3.9925i
 7.4668+9.0741i   5.8817+5.2582i

ans = 1e-1 × 
 0.8057+0.5533i   1.9300+7.0959i
 7.8336+5.9435i   0.4409+3.9925i
 7.4668+9.0741i   5.8817+5.2582i
Input
A = rand(2,3)
% Conjugate and non-conjugate transposes
% of a real matrix are the same
ctranspose(A)
transpose(A)
Output
A = 1e-1 × 
 9.6423   8.7792   4.2228
 7.3626   4.2443   1.4160

ans = 1e-1 × 
 9.6423   7.3626
 8.7792   4.2443
 4.2228   1.4160

ans = 1e-1 × 
 9.6423   7.3626
 8.7792   4.2443
 4.2228   1.4160
Input
c = ['chars 😃✌🏻'; 'vector❤️💕']
ctranspose(c)
Output
c = 
chars 😃✌🏻
vector❤️💕

ans = 
cv
he
ac
rt
so
 r
😃❤️
✌🏻💕