Effacer les filtres
Effacer les filtres

how to find the variance of each row in a matrix?

5 vues (au cours des 30 derniers jours)
bsd
bsd le 3 Mai 2012
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

Réponses (2)

Andrei Bobrov
Andrei Bobrov le 3 Mai 2012
out = var(X.').'

Thomas
Thomas le 3 Mai 2012
out=var(X,0,2)

Catégories

En savoir plus sur Numeric Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by