Understanding standard deviation code

Hi Guys,
For the following built in matlab function for standard deviaion std(X,0,2) please can someone tell me what the 0 and 2 are for?
Thanks in advace

답변 (1개)

the cyclist
the cyclist 2019년 11월 22일

2 개 추천

As explained clearly in the documentation for std:
The "0" specifies that the standard deviation will be weighted by sqrt(N-1), where N is the number of elements.
The "2" specifies that the standard deviation will be taken in dimension 2 (i.e. across the rows of a matrix, rather than the default which is down the columns).

카테고리

도움말 센터File Exchange에서 Elementary Math에 대해 자세히 알아보기

태그

질문:

2019년 11월 22일

답변:

2019년 11월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by