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

3 views (last 30 days)
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.

Accepted Answer

Walter Roberson
Walter Roberson on 4 Feb 2017
M = mean(x(end,:))
S = std(x(end.:))
histogram(x(:))

More Answers (0)

Community Treasure Hunt

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

Start Hunting!