You are on page 1of 1

PRACTICA CALIFICADA DE LENGUANJE DE PROGRAMACION

HURTADO VALERIO JIMMY

function jimmy
clc;clear all;clf
a=[0.25 0.32 0.41 0.53];
b=[1.1 1.3 1.5 1.6];
c=polyfit(a,b,3)
d=polyval(c,a);
val=[0.3 0.5];
eval=polyval(c,val)
x=0.25:0.001:0.53;
h=polyval(c,x);
plot(x,h,'r.',a,b,'*g')
grid on

a)
c=

-9.4482 5.2910 2.1551 0.3782

b)
eval =

1.2458 1.5974
c)

1.8

1.7

1.6

1.5

1.4

1.3

1.2

1.1
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6

You might also like