ctransposeComplex conjugate transpose
ctranspose(A)A should be a numeric matrix, a character matrix, or a structure matrix. It does not work with A having more than 2 dimensions, i.e., ndims(A) > 2.A.', i.e., A'.transpose(A) or A.' instead.A is not complex, it gives the same matrix as transpose(A) or A'.A = complex(rand(2,3), rand(2,3))
% Conjugate transposes
ctranspose(A)
A'
% Non-conjugate transposes
transpose(A)
A.'
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
A = rand(2,3)
% Conjugate and non-conjugate transposes
% of a real matrix are the same
ctranspose(A)
transpose(A)
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
c = ['chars 😃✌🏻'; 'vector❤️💕']
ctranspose(c)
c =
chars 😃✌🏻
vector❤️💕
ans =
cv
he
ac
rt
so
r
😃❤️
✌🏻💕