All the matlab related stuff goes here