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

조회 수: 2 (최근 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