How can i generate hermitian of a matrix in matlab?

Antworten (2)

pankaj singh
pankaj singh am 31 Mai 2019
Transpose for real matrices is equivalent to Hermitian (complex conjugate transpose) for complex matrices. Therefore, you can use the same matlab operator to generate the Hermitian for a complex matrix. For example:
x = [1+j; 1-j; 2-j; 1+2j] % random complex matrix
x =
1.0000 + 1.0000i
1.0000 - 1.0000i
2.0000 - 1.0000i
1.0000 + 2.0000i
>> x' % take it's Hermitian
ans =
1.0000 - 1.0000i 1.0000 + 1.0000i 2.0000 + 1.0000i 1.0000 - 2.0000i
Walter Roberson
Walter Roberson am 21 Apr. 2016
Hermitian is a property, not something that can be generated. A hermitian matrix is a matrix which is equal to its complex transpose.
If you have a matrix which "should" be hermitian but might not be due to round-off error, then take
newH = (H + H') / 2

4 Kommentare

Midhun
Midhun am 21 Apr. 2016
Thanks for the info..
David Mis
David Mis am 28 Jan. 2020
Bearbeitet: David Mis am 28 Jan. 2020
For clarification: "A Hermitian" means the conjugate transpose of A, and it is indeed something that can be generated (in MATLAB we use A' as in pankaj singh's answer). This phrasing is distinct from "A is Hermitian", which means A has the property Walter mentions.
Actually theoretically matrix is hermitian if conjugate of A transpose is A itself. So it is a property. But usually the word hermitian is used as short for hermitian transpose.
I only know Hermitian, or conjugate transpose.
Rarely heard "complex transpose" or "hermitian transpose".

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 21 Apr. 2016

Kommentiert:

am 23 Okt. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by