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

2 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by