` c=polyfit(x,y,n)`

Inputs | |

`x` |
The vector of known independent values. |

`y` |
The vector of known dependent values for the corresponding values of `x` . |

`n` |
The degree of polynomial to which the data is to be fitted. |

Outputs | |

`c` |
The vector of cofficients of the best polynomial that fits the data. |