This is an excerpt from the help page of the interactive fitting function you are using:
The polyfit function performs the transformation itself if you provide three return arguments when calling it:
[p,S,mu] = polyfit(x,y,n)
The returned regression parameters, p, now are based on normalized x. The returned vector, mu, contains the mean and standard deviation of x. For more information, see the polyfit reference page.