Rank test
[pval, ranksum] = test2r(x,y)
samples.
Test for equal location 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 devide pval by 2.