How do I compute the mean and the standard deviation of a specific row from a matrix?

1 回表示 (過去 30 日間)
Hello everyone, I've got a matrix "x" 52x1000 double and I need to compute the mean and the std deviation of the last row. Is it correct writing: M= mean (x,52); S= std (x,52); ? Furthermore, how can I compute the histogram of the whole of the whole matrix? Thanks.

採用された回答

Walter Roberson
Walter Roberson 2017 年 2 月 4 日
M = mean(x(end,:))
S = std(x(end.:))
histogram(x(:))

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by