Can't reproduce original data from curve fit function
43 views (last 30 days)
Show older comments
I am using matlab cftool to fit a X vs Y set of data. Both X and Y are 1D arrays. The curve generated by the cftool visually fits the data well, and if I use the 'analysis' section of the cftool, I get Y_fit very close to Y. But if I get the fitting coefficients are generate Y_fit from them, the values are way off. Am I making any basic mistake? I am using polynomial curve fit scheme.
2 Comments
Sean de Wolski
on 7 Mar 2014
How are you getting the coefficients?
Save the fit to workspace "Fit Menu" -> "Save to Workspace"
Then
fittedmodel.C
where C is your coefficient
Answers (0)
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!