Documente Academic
Documente Profesional
Documente Cultură
INGENIERIA
FACULTAD DE INGENIERIA ELCTRICA Y
ELECTRNICA
ESTUDIANTE
:
Tomanguilla Collazos, Vctor Rolando
CODIGO
:
20114159C
CURSO
:
EE610M Anlisis de Seales y Sistemas
DOCENTE
:
Ing. Cajahuaringa Camaco Armando Alberto
AO
2015
Del grfico anterior se puede deducir que la curva que mejor se ajustara a los
puntos de la grfica sera la funcin exponencial, para hacer el ajuste de curva se
us el siguiente script:
Este script dio
como resultado:
clear; clc;
h = 0:3:33;
D= [1.20 0.91 0.66 0.47 0.31 0.19 0.12 0.075 0.046 0.029 0.018
0.011];
%Hacemos el ajuste de curva
p=polyfit(h,log(D),1);
a=p(1);
c=exp(p(2));
%Grafica de la curva de ajuste
hold on
plot(h,D,'*');
x=linspace(0,33,100);
y=c*exp(x.*a);
plot(x,y,'r');
grid on;
title('D vs h');
xlabel('h (km)');
ylabel('D (Kg/m^3)');
legend('Datos reales','Curva de ajuste');
hold off;
S 2= ( y if (xi ) )
i=1
Luego:
xy =
S2
N 2
Donde:
N
:
f ( xi )
nmero de datos.
:
funcin de ajuste.
clear; clc;
h = 3:3:33;
D= [0.91 0.66 0.47 0.31 0.19 0.12 0.075 0.046 0.029 0.018
0.011];
iden=ones(1,length(h));
N=length(h);
%Hacemos el ajuste lineal
pl=polyfit(h,D,1);
al=pl(1);
bl=pl(2);
yl=(D-(al*h+bl)).^2;
s2l=yl*iden';
ol=sqrt(s2l/(N-2))
%Hacemos el ajuste potencial
pp=polyfit(log(h),log(D),1);
ap=pp(1);
bp=exp(pp(2));
yp=(D-(bp*h.^ap)).^2;
s2p=yp*iden';
op=sqrt(s2p/(N-2))
%Hacemos el ajuste exponencial
pe=polyfit(h,log(D),1);
ae=pe(1);
clear;
clc;
be=exp(pe(2));
fs=
1000;
ye=(D-(be*exp(ae*h))).^2;
t=-12:1/fs:20;
s2e=ye*iden';
t1=-12:1/fs:4;
oe=sqrt(s2e/(N-2))
y=(5-(5/16)*(t1+8).^2).*((-12<=t1)&(t1<=-4));
%Hacemos el ajuste logaritmico
y=y+((5/16)*(t1).^2-5).*((-4<=t1)&(t1<=4));
plo=polyfit(log(h),D,1);
alo=pe(1);
d=-12:16:20;
blo=pe(2);
v=pulstran(t,d,y,fs);
ylo=(D-(alo*log(h)+blo)).^2;
s2lo=ylo*iden';
plot(t,v);
olo=sqrt(s2lo/(N-2))
grid
on;
set(gca,'XTick',-12:2:20);
axis([-12 20 -5 5]);
xlabel('t');
ylabel('v(t)');
function v=v_de_t(t)
fs= 1000;
t1=-12:1/fs:4;
y=(5-(5/16)*(t1+8).^2).*((-12<=t1)&(t1<=-4));
y=y+((5/16)*(t1).^2-5).*((-4<=t1)&(t1<=4));
d=min(t):16:max(t);
v=pulstran(t,d,y,fs);
plot(t,v);
grid on;
axis([min(t) max(t) min(v) max(v)]);
xlabel('t');
ylabel('v(t)');
end
clear;clc;
t=-40:0.001:88;
h=14-2*v_de_t((t-8)/4);
plot(t,h); grid on;
axis([-40 88 4 24]);
xlabel('t');
ylabel('v(t)');
simplemente usamos la
PREGUNTA N 3
a) Para hallar el valor medio de la seal v(t), se us el siguiente script:
Al ejecutar el
script, el valor
medio resulta:
clear; clc;
fs= 10000;
t=-12:1/fs:4;
y=(5-(5/16)*(t+8).^2).*((-12<=t)&(t<=-4));
y=y+((5/16)*(t).^2-5).*((-4<=t)&(t<=4));
%Para hacer la integracin numrica se
%usar el comando trapz
vmedio=(1/16)*trapz(t,y)
clear; clc;
fs= 10000;
t=-12:1/fs:20;
y=(5-(5/16)*(t+8).^2).*((-12<=t)&(t<=-4));
y=y+((5/16)*(t).^2-5).*((-4<=t)&(t<=4));
y=y+(5-(5/16)*(t-8).^2).*((4<=t)&(t<=12));
y=y+((5/16)*(t-16).^2-5).*((12<=t)&(t<=20));
y=y.^2;
%Para hacer la integracin numrica se
%usar el comando trapz
e=trapz(t,y)
Como
energa.
PREGUNTA N 4
a) Para hacer la grfica de V ( ) vs , se us el siguiente script:
clear; clc;
ro=3+4*i;
p=-8*pi:0.001:angle(ro);
v=50*abs(1+abs(ro)*exp(i*p));
plot(p,v); grid on;
axis([-8*pi angle(ro) 0 max(v)]);
xlabel('y');
ylabel('V(y)');
V ( x ) vs
x
, para diferentes valores de , se us el
siguiente script:
De la ejecucin del script se obtuvo el siguiente resultado:
c) Haciendo
las
ecuaciones:
V ( )=50|1+5e j|
Se
deducir que:
Entonces:
puede
clear; clc;
ro=3+4*i;
x=-2:0.001:0;
%Para lambda=1/2
p=4*pi*x/(1/2)+angle(ro);
v=50*abs(1+abs(ro)*exp(i*p));
subplot(2,1,1)
plot(x/(1/2),v); grid on;
title('Para lambda=1/2');
xlabel('x/lambda');
ylabel('V(x)');
%Para lambda=1
p=4*pi*x+angle(ro);
v=50*abs(1+abs(ro)*exp(i*p));
subplot(2,1,2)
plot(x,v); grid on;
title('Para lambda=1');
xlabel('x/lambda');
ylabel('V(x)');
26+10 cos
x ( t )h ( t )= y ( t ) (1)
Entonces:
x 2 ( t )h ( t )= y 2 (t) (2)
'
x 2 ( t )h ( t ) = y 2 (t )
Reemplazando (3):
x ( t )h ( t )= y ' 2 (t)
De (1) tenemos:
y (t )= y ' 2( t)
Finalmente:
y 2 (t)= y ( t ) dt
y 2 ( t )=
t +et , 0<t< 1
( 1e ) et +2,1<t <2