matlab files for simulation of my master thesis.