How is possible to calculate error for a fitted graph?
2 views (last 30 days)
Show older comments
Could you please guide me is there any command to calculate error for a fitted scattered data?
4 Comments
dpb
on 28 Feb 2020
See the links to postprocessing fit results...it is, unfortunately, the weak link in MATLAB curve fitting.
The Curve Fitting Tool, cftool has the goodness of fit table shown if you build the model inside it which you can then export. There are a few supplied functions that take the fit object created above and return some statistics that are linked to from the postprocessing link or through the cfit object link of the output variable from fit, but none of those functions will build a nice ANOVA table or the like for you similar to SAS or other stat packages, unfortunately.
Otherwise, you're forced to build those additional results from basic principles. The PostProcessing link shows how to do some of the most basic.
As noted, big weakness in MATLAB Statistics and Fitting toolboxes in general. Pretty easy to compute the answers, not so easy for most to analyze/use the results as all you get for the most part is the most basic info.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!