polyfit

polyfit is used to create a fitting polynomial for a given set of data x and y. It uses least square method to create the polynomial.