I have a matrix q and i need the diagonal of qq'
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Dr. Seis
2012-2-8
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 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!