p = ranksum(x, y)
p = ranksum(x, y, Name, Value)
[p, h, stats] = ranksum(...)
ranksum performs a two-sample rank sum test. NaN observations are omitted from each input vector.
Name-value arguments include Alpha, Tail, and Method. Supported tails are both, right, and left. Supported methods are auto, exact, and approximate.
x = [1 3 5];
y = [2 4 6];
[p, h, stats] = ranksum(x, y)
| Version | Description |
|---|---|
| 2.0.0 | initial version |