allstats
The file is simple enough. Given a data set,
x = randn(1000,1); hist(x,100)
allstats returns a list of statistical values.
myStats = allstats(x)
myStats =
min: -3.1289
max: 2.9371
mean: -0.06815
std: 1.0019
mode: -3.1289
q2p5: -1.9519
q5: -1.7128
q25: -0.73464
q50: -0.072006
q75: 0.55077
q95: 1.6351
q97p5: 1.8844
The mean should be close to zero,
myStats.mean
ans =
-0.06815
and the standard deviation should be close to one.
myStats.std
ans =
1.0019
How convenient.
As it turns out, this month the File Exchange recently celebrated a major milestone. Allstats has the honor of being the official 10,000-th submission. Congratulations to Francisco and every contributor who made this possible! Growth of the File Exchange has been absolutely amazing.
If only my retirement account was that impressive! (sigh)
- 범주:
- Picks


댓글
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.