Approximation coefficients differencies when function fit and Fitting Curve are used
1 view (last 30 days)
Show older comments
There is a problem of approximation when i use function fit. When i use Fitting Curve i really get good approximation coefficients, because start point parametres are given by program when i choose x and y vectors before fit. When i use fit function start points are random. I can not indicate start points by mysefl and i don't know how can i get the same approximation coefficients when i use function fit and when i use Fitting Curve.
4 Comments
Answers (1)
Matt J
on 25 Oct 2019
Edited: Matt J
on 25 Oct 2019
What is "Fitting Curve"? Do you mean the Curve Fitting app? Why do you think the fit function uses different starting points than the app? It shouldn't. It is using the fit() function internally, just as you are attempting to do. You can use the drop down menu option File>>Generate Code in the app to see how it invoked the fit() command to do the fit.
4 Comments
See Also
Categories
Find more on Fit Postprocessing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!