Getting the values from the curve fitted model
5 views (last 30 days)
Show older comments
Hirak Basumatary
on 5 Aug 2018
Commented: Hirak Basumatary
on 6 Aug 2018
Is there a way i can get the new values of the datas ( x and y) from the curve fitted model?
1 Comment
Accepted Answer
jonas
on 5 Aug 2018
If you used fit:
p=fit(...) %your model
y=p(x) %evaluate your model at x
Similarily, if you used polyfit:
p=polyfit(...) %your model
y=polyval(p,x) %evaluate your model at x
More 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!