Está en la página 1de 11

DESARROLLO DEL EXAMEN DE PDS

NOMBRE: GARCIA PUELLES MICHAEL


NUMERO DE ORDEN: 31
CODIGO: 110766-I


















SEGUNDA REGUNTA


PROGRAMA EN MATLAB
% Ejemplo de una ffT de una seal exponencial modulada en amplitud
% con una frecuencia portadora de 75Hz.

% Definicion de la seal
fsim=70000;
Rp=1;
Rs=20;
Wp=2*3400/fsim;
Ws=2*4000/fsim;
t=-0.25:0.001:0.25;
x=exp(-2*t).*sin(19*pi*75*t);

% Representacion en el tiempo
subplot(3,1,1);
plot(t,x);
title('x(t)=exp(-2t)sin(19pit)');
xlabel('Tiempo (t)');ylabel('x(t)');

% Transformada de Fourier
X=fftshift(fft(x));

% Magnitud y fase de la transformada
Xm=abs(X);
Xf=unwrap(angle(X))*180/pi;

% Base de frecuencias

delta_t = t(2)-t(1);
f = ((1:length(t)) - ceil(length(t)/2)) / length(t) / delta_t;

% Representacion en frecuencia
subplot(3,1,2);
plot(f,Xm,'r');
title('Mdulo de transformada de Fourier de x(t)');
xlabel('frecuencia (Hz)');ylabel('|X(jw)|');
subplot(3,1,3);
plot(f,Xf,'r');zoom;
title('fase de la transformada de Fourier de x(t)');
xlabel('frecuencia (Hz)');ylabel('fase X(jw)');



figure (2)
[N,Wn]=ellipord(Wp,Ws,Rp,Rs);
[b,a]=ellip(N,Rp,Rs,Wn);
f=0:1:10000;
H=freqz(b,a,f,fsim);
subplot(3,1,1);
plot(f,abs(H),'m');
grid on;
title('G R A F I C O P A S A B A J O');

[N,Wn]=ellipord(Wp,Ws,Rp,Rs);
[b,a]=ellip(N,Rp,Rs,Wn,'high');
f=0:1:10000;
H=freqz(b,a,f,fsim);
subplot(3,1,2);
plot(f,abs(H),'m');
grid on;
title('G R A F I C O P A S A ALTO');

H = freqz(b,a,f,fsim);
subplot(4,1,2)
plot(f,abs(H),'m');
grid on;
title('Filtro Pasa Banda');

% en frecuencia para un filtro digital
H = freqz(b,a,f,fsim);
subplot(4,1,4)
plot(f,abs(H),'m');
grid on;
title('Filtro ELIMINA BANDA');




GRAFICA










GRAFICA


GRAFICA











GRAFICA





CUARTA PREGUNTA


PROGRAMA EN MATLAB
%Para x1[n]=[3 1 5 2 11 7] y h[n]=[5 2 0 4]

%1) CONVOLUCION=conv(x,h)

X1=[3 1 5 2 11 7]
h=[5 2 0 4]
y=conv(X1,h)

%2) CORRELACION rxy=xcorr(xjy)

rxy=xcorr(X1,y)

%3) AUTOCORRELACION rxx=xcorr(x)

rxx=xcorr(X1)


%Para x2[n]=[4 1 3 6 2 5] y h[n]=[5 2 0 4]


%1) CONVOLUCION=conv(x,h)

X2=[4 1 3 6 2 5]
h=[5 2 0 4]
y=conv(X2,h)

%2) CORRELACION rxy=xcorr(xjy)

rxy=xcorr(X2,y)

%3) AUTOCORRELACION rxx=xcorr(x)

rxx=xcorr(X2)


DESARROLLO DEL PROGRAMA


Para x1[n]=[1 4 3 2 8 6] y h[n]=[2 5 0 4]

CONVOLUCION=conv(x,h)

X1=[1 4 3 2 8 6]
h=[2 5 0 4]
y=conv(X1,h)

y =

15 11 27 32 63 77 22 44 28

CORRELACION rxy=xcorr(xjy)

rxy=xcorr(X1,y)

rxy =

1.0e+03 *

Columns 1 through 9

0.0840 0.1600 0.2500 0.5290 0.7720 1.2680 1.1320 1.3470 1.4870

Columns 10 through 17

0.9170 0.6180 0.3400 0.2420 0.1050 -0.0000 0 0.0000

AUTOCORRELACION rxx=xcorr(x)

rxx=xcorr(X1)

rxx =

Columns 1 through 9

21.0000 40.0000 52.0000 86.0000 117.0000 209.0000 117.0000 86.0000 52.0000

Columns 10 through 11

40.0000 21.0000

%Para x2[n]=[4 4 3 5 5 4] y h[n]=[2 5 0 4]


Para x2[n]=[4 4 3 5 5 4] y h[n]=[2 5 0 4]

CONVOLUCION=conv(x,h)

X2=[4 4 3 5 5 4]
h=[2 5 0 4]
y=conv(X2,h)


y =

20 13 17 52 26 41 34 8 20


CORRELACION rxy=xcorr(xjy)

rxy=xcorr(X2,y)

Columns 1 through 9

80.0000 52.0000 204.0000 342.0000 335.0000 677.0000 552.0000 633.0000 713.0000

Columns 10 through 17

395.0000 432.0000 231.0000 105.0000 100.0000 0.0000 -0.0000 0.0000

AUTOCORRELACION rxx=xcorr(x)

rxx=xcorr(X2)

rxx =

20 13 41 54 47 91 47 54 41 13 20




























PRIMERA PREGUNTA.

-SEAL FI Y SU MUESTRA:

a) PROGRAMA EN MATLAB


t=[0:0.001:3];
t=[0:0.001:3];
y=2*pulstran(t,d,'tripuls',1)-1;
f=128; frecuencia de la seal
e=[0:1/f:3];
h=pulstran(t,e,'rectpuls',0.01);
sampling=h.*y;
plot(t,sampling,t,y)

FO=128; frecuencia de la seal
A=2;
phi=pi/4;
Fs=8000; frecuencia de muestreo
Ts=1/Fs; periodo de muestreo
t=-0.002:Ts:0.002;
xt=A*sawtooth(2*pi*FO*t+phi);
stem(t,xt)


GRAFICA DE LA SEAL








MUESTRA DE LA SEAL





b) PROGRAMA EN MATLAB

t=[0:0.001:3];
t=[0:0.001:3];
y=2*pulstran(t,d,'tripuls',1)-1;
f=44.3; frecuencia de la seal
e=[0:1/f:3];
h=pulstran(t,e,'rectpuls',0.01);
sampling=h.*y;
plot(t,sampling,t,y)

FO=44.3; frecuencia de la seal
A=2;
phi=pi/4;
Fs=8000; frecuencia de muestreo
Ts=1/Fs; periodo de muestreo
t=-0.002:Ts:0.002;
xt=A*sawtooth(2*pi*FO*t+phi);
stem(t,xt)






GRAFICA DE LA SEAL




MUESTRA DE LA SEAL

También podría gustarte