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 CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by