A collection of useful matlab tools