MATLAB scripts for DTU PhD summer school 2014