The Wilcoxon signed-rank test is a non-parametric statistical test to compare two related samples. In Matlab, you can perform this test using the signrank function. Here's an example of how to use this function:
main.m500 chars16 lines
In this example, x and y are the two related samples. The signrank function returns the p-value, test statistic, and a logical value indicating whether to reject the null hypothesis at a 5% significance level (h=1 means reject, h=0 means do not reject).
gistlibby LogSnag