A permutation test (aka randomisation test) for MATLAB, supporting one- and two-tailed tests and capable of visualising the outcome using a histogram. Takes two vectors of observed samples, and provides a p-value, the observed difference, and the effect size. It is also possible to perform exact tests, during which all possible combinations are considered.
Added exact test
Create scripts with code, output, and formatted text in a single executable document.