A collection of matlab functions for numeric analysis