Test location equality of two samples using rank test
pval=test2r(x,y) [pval,ranksum]=test2r(x,y)
a nx-by-1 matrix of doubles
a ny-by-1 matrix of doubles
a 1-by-1 matrix of doubles, the two-sided p-value
a 1-by-1 matrix of doubles, the rank sum statistics
Test location equality of two samples using rank test.
This is the Wilcoxon-Mann-Whitney test. It is two sided.
If you want a one sided alternative then divide pval by 2.
http://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U