I have a matrix q and i need the diagonal of qq'
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have a 5x5 matrix q and i need to obtain the diagonal of qq' anyone know how to do this and what qq' is?
0 Commenti
Risposta accettata
Dr. Seis
il 8 Feb 2012
In your Help Navigator, search for "arithmetic operators" and "diag"
diag(q*q')
is the same as
diag(q*transpose(q))
if all of the elements in q are real. Otherwise ' will give you the complex-conjugate transpose.
0 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Operating on Diagonal Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!