The CSP algorithm uses two main files: csp.m and csp2.m. csp.m requires spatfilt.m to function properly. The eigenvalue matrix test can be passed, but the U1 and U2 matrices do not match. Any feedback is welcome.