p = signtest(x)
p = signtest(x, y)
p = signtest(x, m)
p = signtest(x, y, Name, Value)
[p, h, stats] = signtest(...)
signtest performs a sign test for a median or paired difference. If y is omitted, values of x are tested against zero. If y is a scalar, values of x are tested against that scalar.
Name-value arguments include Alpha, Method, and Tail. Zero differences and NaN values are omitted.
x = [1 2 -3 4 -5];
[p, h, stats] = signtest(x)
| Version | Description |
|---|---|
| 2.0.0 | initial version |