MATLAB 6 includes Basic Fitting in its Figure window’s Tools menu that lets you fit a polynomial curve (up to 10th order) to your data on a fly.
It also gives you options of displaying the residual at the data points and computing the norm of the residuals.
This can help in comparing different fits and then selecting the one that makes you happy.
Let us take an example and go through the steps.