Create LaTeX and Matlab codes