matrix analyser for the win