Center and scale a fit

62 views (last 30 days)
Angela
Angela on 30 May 2018
Commented: Angela on 31 May 2018
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?

Accepted Answer

dpb
dpb on 31 May 2018
There's a 'Normalize','off'|'on' Name-Value Pair Argument in the fitOptions Link fitOptions
  1 Comment
Angela
Angela on 31 May 2018
Thank you!

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!