Understanding standard deviation code

3 Ansichten (letzte 30 Tage)
Jack Ellis
Jack Ellis am 22 Nov. 2019
Beantwortet: the cyclist am 22 Nov. 2019
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

Antworten (1)

the cyclist
the cyclist am 22 Nov. 2019
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).

Kategorien

Mehr zu Elementary Math finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by