I added everything that has to do with Matlab simulation