Eval 2

x=[1 2 3 4 5];
y=[2 9 28 65 126];
polyfit(x,y,3)

hold all
a=linspace(1,5,100);
p=[1 0 0 1 ];
b=polyval(p,a);

plot(x,y,'r')
plot(a,b,'b')


Popular posts from this blog

Shutdown Pc

Ellipse using OpenGl

String Comparisons