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!