Borrar filtros
Borrar filtros

I have a matrix q and i need the diagonal of qq'

3 visualizaciones (últimos 30 días)
lowcalorie
lowcalorie el 8 de Feb. de 2012
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?

Respuesta aceptada

Dr. Seis
Dr. Seis el 8 de Feb. de 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.

Más respuestas (1)

chengxuan yu
chengxuan yu el 8 de Feb. de 2012
Does the q is the z and q' is the transposed matrix of q?

Categorías

Más información sobre Operating on Diagonal Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by