how to find the variance of each row in a matrix?
Mostrar comentarios más antiguos
Hai,
The function var(X) finds the variance of each column, when X is a matrix. But, I need to find the variance of each row, when X is a matrix. How could I do this in matlab?
Looking for your reply.
BSD
Respuestas (2)
Andrei Bobrov
el 3 de Mayo de 2012
out = var(X.').'
Thomas
el 3 de Mayo de 2012
out=var(X,0,2)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!