필터 지우기
필터 지우기

How to find the derivative of a polynomial fit?

조회 수: 14 (최근 30일)
Kratos
Kratos 2015년 3월 31일
답변: Star Strider 2015년 3월 31일
Hello
I have to plot 4 different subplot with the data provided. I plotted 3 of them(original, polynomial fit and integral), but I have having a hard time finding the derivative of the polynomial fit and plotting it. How do I do this?
xcor = ;% Some x value
ycor = ;% Some y value
opol = ;%order of polynomial
xx = polyfit(xcor,ycor, opol);
yy = polyval(xx, xcor);
plot(xcor, 'New derivative of polynomial fit')
How do I use the polynomial fit(xx) and the value of xor and ecru to plot the data?
Thank you.

채택된 답변

Star Strider
Star Strider 2015년 3월 31일
For the derivative, I would use the polyder function.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by