Some useful functions for plotting with Matlab