For End

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

t =

y =
f =
for

[0 .5 1 1.5 2 2.5 3 3.5 4];


[100 62 38 21 13 7 4 2 3];
polyfit(t,y,2);
k = 1:9
p(k) = f(1)*((t(k))^2)+f(2)*t(k)+f(3);

end
plot(t,y,'o')
hold on
plot(t,p)

You might also like