Matlab and TeX Files for Ph.d.-project