Function Reference
— Function File: [pval, chisq] = run_test (x)

Perform a chi-square test with 6 degrees of freedom based on the upward runs in the columns of x. Can be used to test whether x contains independent data.

The p-value of the test is returned in pval.

If no output argument is given, the p-value is displayed.