a )
Plot the measuret data. Plot a parabola, that are pretty close to the measuret data - use fx p=(-0.4 , 0.2 ,-0.015). Calculate the sum of the squares of the deviation of the measuret data and the fit. Optimize p manuelly if needed.
data:
x: 2,3,4,5,6,7,8,9,10,11,12
y: 0.01,0.03,0.07,0.13,0.19,0.23,0.21,0.16,0.09,0.04,0.02
f(x)= p_3*x^2+p_2*x+p_1
Anyone who can help, I am having trouble with this one

 채택된 답변

Star Strider
Star Strider 2014년 2월 24일

0 개 추천

Take a look at the documentation for polyfit. Everything on that page should get you started, including evaluating the polynomial and plotting it. Be sure to scroll all the way through to the end of the page. There are links there to a number of related MATLAB functions you will find useful.

댓글 수: 3

Rasmus
Rasmus 2014년 2월 25일
I am still having trouble getting it to work properly. I can't plot the poly and i dont really see why, as i follow instructions etc.
Rasmus
Rasmus 2014년 2월 25일
Nevermind, i made it work :)
Star Strider
Star Strider 2014년 2월 25일
Great!

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

추가 답변 (0개)

카테고리

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

질문:

2014년 2월 24일

편집:

2014년 2월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by