Integration Matlab Code

HI everybody,
I need to integrate a 3rd order polynomial function from 0 until the "x" value corresponding to the maximum "y" value. Do you know the matlab code for the integration with limits ?. Finally, I would like to know the coefficient of correlation of the trend line that fits better the x and y database. I sometimes increase the order of the polynomial to obtain a best fit but I also want to know the coefficient of correlation of the equation.
I will appreciate any help you can provide me.
Thanks,
Sergio

댓글 수: 1

bym
bym 2011년 11월 1일
Increasing the order of the polynomial to get a 'better fit' is usually a bad idea. See http://en.wikipedia.org/wiki/Runge's_phenomenon

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

태그

질문:

2011년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by