You are on page 1of 2

EJERCICIO 1: 11-07-18

p=0.008x^4-1.8x^2-5.4x+54 en el dominio -6<=x<=6

primero cree un vector para x , después usar POLYVAL , para calcular y y luego usar PLOT

>> p=[0.008 -1.8 -5.4 54];

>> x=-6:0.1:6;

>> y=polyval(p,x);

>> plot(x,y)

Warning: MATLAB has disabled some advanced graphics rendering features by switching to
software OpenGL. For more (figura 1)

EJERCICIO 2:

>> u=[-0.24 1.6 1.5 -7.41 -1.8 -4 -75.2 -91];

>> v=[-0.8 0 5 6.5];

>> [a,b]=deconv(u,v)

a=

0.3000 -2.0000 0 -0.8000 -14.0000

b=

1.0e-14 *

0 0 0 0 0 0.3553 0 0

Ejercicio 3

h=[0 600 1500 2300 3000 6100 7900];


t=[100 98.8 95.1 92.2 90 81.2 75.6];
p=polyfit(h,log(t),1);
m=p(1)
b=exp(p(2))
hm=0:0.1:7900;
tm=b*exp(m*hm);
plot(h,t,'o',hm,tm)

You might also like