ejercicio 7
x=linspace(0,5,11); y=[10 10 16 24 30 38 52 68 82 96 123]; p=polyfit(x,y,2) x1 = linspace(0,5); y1 = polyval(p,x1); figure plot(x,y,'o') hold on size(x1) size(y1) plot(x1,y1)
p = 4.0233 2.0107 9.6783 ans = 1 100 ans = 1 100

x=linspace(0,5,11); y=[10 10 16 24 30 38 52 68 82 96 123]; p=polyfit(x,y,2) x1 = linspace(0,5); y1 = polyval(p,x1); figure plot(x,y,'o') hold on size(x1) size(y1) plot(x1,y1)
p = 4.0233 2.0107 9.6783 ans = 1 100 ans = 1 100