MATLAB: Center and scale a fit

fit

I want to use the 'fit' command to model a dataset with a two term Gaussian model. I found an example about how to center and scale polyfit: [p,S,mu] = polyfit(x,y,n) but i have not been able to find an example how to center and scale the 'fit' command and then use the feval command to see the fit y values. Does anyone know how to do it?

Best Answer

There's a 'Normalize','off'|'on' Name-Value Pair Argument in the fitOptions Link fitOptions
Related Question