How can I calculate the slope of third order polynomial fit
5 views (last 30 days)
Show older comments
I have a third order polynomial fit. I would like to calculate the slope of the fit. Any ideas on how i can do this? Is possible to obtain this from the coefficients?
[p,S] = polyfit(x,y,3);
[y_fit,delta] = polyval(p,x,S);
0 Comments
Answers (1)
John D'Errico
on 12 Jul 2019
Is there a reason why you would not think to differentiate it?
help polyder
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!