Está en la página 1de 28

CURSO

PROCESAMIENTO DIGITAL DE SEÑALES

LABORATORIO N°1

PROFESOR

ING. ACOSTA SOLORZANO WILLIAMS

INTEGRANTES DE GRUPO
 COTAQUISPE PAICO ANGEL H. U17104860
 TENORIO JULCA JHONY 1626848
 YOJAR APAZA CHULLUNQUIA U17300711
 VIDAL VALVERDE KEVIN MICHAEL U17209256

2021
1. Impulso continuo y discretos

1.1 Enuncie la propiedad de extracción de la delta de Dirác

a. Escalamiento:

[ ( )] ( )
| |

b. Producto
( ) ( ) ( ) ( )

( ) ( ) ( ) ( )

c. Filtrado

∫ ( ) ( ) ( )

1.2 Evalué las siguientes integrales usando propiedades de la delta de Dirac.

a. ∫ ( ) ( )⁄ ( ) ( )

b. ∫ ( ) ( )

∫ ( ) (( )( ))

∫ ( ) ( ))

∫ ( ) ( ))
c. ∫ ( ) (( ) )

∫ ( ) ( )

∫ ( ) ( )

( ) ( )

( ) ( )

2.- Para cada una de las siguientes señales, determine si es periódica o


aperiódica. En el primer caso, especifique su periodo fundamental. Luego grafique
las señales en MATLAB utilizando un rango de valores adecuados para que se note
el tipo de señal que es. Para las señales complejas puede graficar parte real e
imaginaria, o modulo y fase, o si acepta el desafío puede probar con un gráfico 3D
(usando plot3).

2.1 ( ) ( )

a) Programa:

t = -50:0.01:50;
x = -2*sin(-0.2*t +
5/3*pi);
plot(t,x,'m'),grid on

b) Gráfico:
2.2 ( ) ( )

a) Programa:

t = -50:0.01:50;
x = -2*sin(-0.2*t + 5/3*pi);
plot(t,x,'m'),grid on

b) Gráfico:

2.3 ( ) [ ( )]

a) Programa:

t = -5:0.1:5;
x = 0.5*((cos(2*t - pi/4)).^2);
plot(t,x,'m'),grid on

b) Gráfico:

2.4 ( ) [ ( )]

a) Programa:
t = -5:0.01:5;
x = 0.5*cos(2*t.^2 - pi/4);
plot(t,x,'m'),grid on

b) Gráfico:
( )
2.5 ( )

a) Programa:
t=[-10:0.01:10];
x=exp(j*((pi/2)*t)-pi);
plot3(real(x),imag(x),t,'m'), grid on

b) Gráfico :

( )
2.6 ( )

a) Programa:

n=[-40:1:40];
x=exp(j*((n/2)-pi));
stem3(real(x),imag(x),n,'m'), grid on

b) Gráfico

2.7. 𝗑( ) = 2𝑐𝑜𝑠(2𝜋 ) + 𝑠i𝑛(10 )

a) Programa:
t = -10:0.01:10;

x = 2*cos(2*pi*t) + sin(10*t);plot(t,x,'r'),grid on

b) Grafica;
2.8 𝗑( ) = 2𝑐𝑜𝑠(4𝜋 )𝑠i𝑛(12𝜋 )

a) Programa:
t = -1:0.01:1;

x = 2*cos(4*pi*t).*sin(12*pi*t);plot(t,x,'r'),grid
on

b) grafica

9. 𝗑 (𝑛) = 𝑐𝑜𝑠(2𝜋𝑛2)

a) Programa:

n = [-4:1:4];

x = cos(2*pi*n.^2);

stem(n,x,’r’),grid on

b) Grafica
3. Manejo de señales VIC Y VID:

Dadas las señales y de la figura. Calcule y grafique las siguientes señales.

3.1

 Edit:

function h=tri1(t)
h = (t+1). *(t >= -1 & t < 1) + (-t+3). *(t >= 1 & t < 3);

 Command Window:

t= [-8:.001:8];
h=tri1(t+1);
plot (t, h,'r'), grid
on
3.2

 Edit:

function h=tri1(t)
h = (t+1). *(t >= -1 & t < 1) + (-t+3). *(t >= 1 & t < 3);

 Command Window:

t= [-8:.001:8];
h=tri1(2*t-3);
plot (t, h,'r‟), grid on

 Gráfica:

3.3

 Edit:

function h=tri1(t)
h = (t+1). *(t >= -1 & t < 1) + (-t+3). *(t >= 1 & t < 3);

 Command Window:

t= [-14:.001:14];
h=tri1((0.5). *(t+10));
plot (t, h,'r‟), grid on

 Gráfica:
3.4

 Edit:
function h=tri1(t)
h = (t+1). *(t >= -1 & t < 1) + (-t+3). *(t >= 1 & t < 3);
----------------------------------------------------------------------------------------------------------------
function R=escalon(t)
R=1*(t>=0);
----------------------------------------------------------------------------------------------------------------

 Command Window:

t= [-12:.001:12];
h=tri1(t/2). *(escalon(t+2)-escalon(t-
plot (t, h,'r’), grid on
3.5

 Edit:

function h=tri1(t)
h = (t+1). *(t >= -1 & t < 1) + (-t+3). *(t >= 1 & t < 3);

 Command Window:

t= [-8:.001:8];
h=tri1(t.^2);
plot (t, h,'r‟), grid on

 Gráfica:

h(t
)

t
3.6

 Edit:

function h=tri1(t)
h = (t+1). *(t >= -1 & t < 1) + (-t+3). *(t >= 1 & t < 3);

 Command Window:

t= [-8:.001:8];
h=tri1(1. /t);
plot (t, h,'r‟), grid on
 Gráfica:

h(t)

3.7

 Edit:

function h=delta(n) h = 1*(n==0) +1*(n==1) +1*(n==2) + 1*(n==3) +


1*(n==4) + 1*(n==5);

 Command Window:

t= [-3:1:10];
x=delta(n-1);
stem (t, h,’r’), grid on

h(t)
3.8

 Edit:

function h=delta(n)
h = 1*(n==0) +1*(n==1) +1*(n==2) + 1*(n==3) + 1*(n==4) + 1*(n==5);

 Command Window:

t= [-3:1:10];
x=delta(2*n);
stem (t, h,’r’), grid on

 Gráfica:

h(t)

t
3.9

 Edit:

function h=delta(n)
h = 1*(n==0) +1*(n==1) +1*(n==2) + 1*(n==3) + 1*(n==4) + 1*(n==5);

 Command Window:

t= [-3:1:10];
x=delta(n.^2);
stem (t, h,’r’), grid on
h(t
)

3.10

 Edit:

function h=delta(n)
h = 1*(n==0) +1*(n==1) +1*(n==2) + 1*(n==3) + 1*(n==4) + 1*(n==5);

 Command Window:

t= [-3:1:10];
x=0.5*(delta(n)+((-1). ^n). *
delta(n)); stem (t, h,’r’), grid
on
 Gráfica:

h(t)

t
3.11

 Edit:

function h=tri1(t)
h = (t+1). *(t >= -1 & t < 1) + (-t+3). *(t >= 1 & t < 3);

 Command Window:

t= [-8:.001:8];
h=(tri1(t)- tri1(-
t))/2;
plot (t, h,'r'), grid on

 Gráfica:

h(t
)

t
3.12

 Edit:

function h=delta(n)
h = 1*(n==0) +1*(n==1) +1*(n==2) + 1*(n==3) + 1*(n==4) + 1*(n==5);

 Command Window:

n= [-4:1:10];
x=(delta(n)+ delta(-
n)) /2;
stem (t, h,’r‟), grid on

 Gráfica:

h(t)

t
4.- GENERE LA FUNCION h(t)

 Edit:
function h=tri1(t)
h=(t+1). *(t>=-1&t<1) +(-t+3). *(t>=1&t<3);

 Command Window:

t= [-2:0.001:8];

h=tri1(2*t-3);

plot (t, h)

 Gráfica:
 Edit:

function h=tri1(t)
h=(t+1). *(t>=-1&t<1) +(-t+3). *(t>=1&t<3);

 Command Window:

t= [-2:0.001:8];

h=tri1(2*t-3);

plot (t, h)
stem (t, h);

 Gráfica:
5. Energía, Potencia y Valor Medio:

I.

II.
III.
IV.

V.

“La Potencia es independiente de la frecuencia y la fase”


6. Introducción a las Señales Aleatorias
Por medio de la Estadística se puede describir el tipo de señal debido a la
obtención de datos distribuidos de la misma manera, ya que estas señales
poseen una naturaleza imprescindible. En este caso se usa la Distribución
Normal y Uniforme.

a) Dos secuencias de 1000 números aleatorios con distribución


normal estándar y graficas de señal e histograma utilizando
randn :
* Código:
r1=randn(1,1000); %secuencia nº1 “distribución normal” r2=randn(1,1000);

%secuencia nº2 “distribución normal” plot(r1);axis([0,1000,-4,4]) %define los ejes

„x‟ e „y‟

figure;plot(r2);axis([0,1000,-4,4])figure; hist(r1,10)

figure; hist(r2,10)

Secuencia nº1 con 1000 muestras normales Histograma nº1

Secuencia nº2 con 1000 muestras normales Histograma nº2


b) Dos secuencias de 1000 números aleatorios con distribución
normal estándar y graficas de señal e histograma utilizando
“rand” :
* Código:
r1=rand(1,1000); %secuencia nº1 “distribución uniforme” r2=rand(1,1000);

%secuencia nº2 “distribución uniforme” plot(r1);axis([0,1000,-4,4]) %define los

ejes „x‟ e „y‟

figure;plot(r2);axis([0,1000,-4,4])figure; hist(r1,10)

figure; hist(r2,10)

Secuencia nº1 con 1000 muestras uniformes Histograma nº1

Secuencia nº2 con 1000 muestras uniformes Histograma nº2


jugando un poco con las señales

*Método 1:

%Voz de hombre

x=wavread('holaHombre'); %archivo de audiofigure(1)

plot(x) %grafica en el dominio del tiempogrid on

Y=fft(x); %transformada de fourier A=Y.*conj(Y);


%potencia de la señal f=(100:4000); %espectro de
frecuenciafigure(2)

plot(f,A(1:3901)) %grafica en el dominio de la frecuenciagrid on

Figura 1: Gráfica en el dominio del tiempo

Figura 2: Gráfica en el dominio de la frecuencia


*Método 2:

% Voz de Hombre SEGUNDO METODO [A,Fs,bits] =


wavread('holaHombre');siz =
wavread('holaHombre','size'); t = 0:1:siz-1;

figure(1)
plot(t,A) grid
on

S=fft(A,1024);
f=(0:511)/512*(Fs/2);
Y=abs(S(1:512));

figure(2)
plot(f,Y) grid
on

B=find(Y==max(Y))
frec=f(B)
str=num2str(frec)

h=legend('frecmax=',str,1');

Figura 1: Gráfica en el dominio del tiempo


Figura 2: Gráfica en el dominio de la frecuencia
*Metodo 3:

%Voz de Mujer

x=wavread('holaMujer'); %archivo de audio


figure(1)

plot(x) %grafica en el dominio del tiempo


grid on

Y=fft(x); %transformada de fourier


A=Y.*conj(Y); %potencia de la señal
f=(100:4000); %espectro de frecuencia
figure(2)

plot(f,A(1:3901)) %grafica en el dominio de la frecuenciagrid on

Figura 1: Gráfica en el dominio del tiempo

Figura 2: Gráfica en el dominio de la frecuencia

También podría gustarte