4th year project stuff for latex and matlab code.