matrix vector multiplication complex number
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sylvain Rousseau
am 13 Jun. 2019
Kommentiert: Sylvain Rousseau
am 13 Jun. 2019
Hi,
A complex matrix - vector mutiplication yields to a wrong result.
Heer is the code :
M = [ 1 complex(1,1) ; complex(0,-1) 1 ; 2 0; -1 3]
b = [ 2 complex(1,-1)]';
y=M*b
The outcome obtaind manually is : [ 4 1-3*i 4 1-3*i]
The matlab result (which is wrong) : [ 2+2*i 1-1*i 4 1+3*i]
May I ask you some hints please ?
Regards
Sylvain
0 Kommentare
Akzeptierte Antwort
Torsten
am 13 Jun. 2019
b = [ 2 ,complex(1,-1)].'
instead of
b = [ 2 ,complex(1,-1)]'
3 Kommentare
Torsten
am 13 Jun. 2019
b = [ 2 ,complex(1,-1)].'
means that you take the transpose of the vector which gives
b = [2; complex(1,-1)]
b = [ 2 ,complex(1,-1)]'
means that you take the conjugate transpose of the vector which gives
b = [2; complex(1,1)]
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!