MATLAB: How to compute the mean and the standard deviation of a specific row from a matrix

histogrammeanstandard deviation

Hello everyone, I've got a matrix "x" 52×1000 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.

Best Answer

M = mean(x(end,:))
S = std(x(end.:))
histogram(x(:))