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

11 ビュー (過去 30 日間)
bsd
bsd 2012 年 5 月 3 日
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

回答 (2 件)

Andrei Bobrov
Andrei Bobrov 2012 年 5 月 3 日
out = var(X.').'

Thomas
Thomas 2012 年 5 月 3 日
out=var(X,0,2)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by