How can I calculate the slope of third order polynomial fit
조회 수: 12 (최근 30일)
이전 댓글 표시
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
답변 (1개)
John D'Errico
2019년 7월 12일
Is there a reason why you would not think to differentiate it?
help polyder
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!