This is code for my thesis, either MATLAB or LaTeX