Some Matlab stuff for the class