Test for median equals 0 using rank test
pval=test1r(x) [pval,ranksum]=test1r(x)
a n-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 for median equals 0 using rank test.
This is called the Wilcoxon signed rank test. It is two sided.
If you want a one sided alternative then divide pval by 2.
http://en.wikipedia.org/wiki/Wilcoxon_signed-rank_test