Matlab stuff of the previous results