You are on page 1of 8

SEÑALES DISCRETAS

REALIZADO POR: JUAN ESTEBAN MORENO VERA

COD:57377

PRESENTADO DOCENTE: ALEXANDER DÍAZ

UNIVERSIDAD ECCI MEDELLIN

2019
GRAFICA 1.

function[Ysalida]=graficadiscreta(x)
n=-2:6;
x=[0 0 1 2 1 0 -1 0 0];
Ysalida=stem (n,x,'filled');
xlabel('n')
ylabel('x[n]')
return
GRAFICA 2.
SUMA DE DOS SINUSOIDALES CON DIFERENTE FRECUENCIA ANGULAR.

function[Ysalida3]=graficadiscreta3(x,h)
n=0:40;
x=sin(.2*n);
h=sin(.5*n); %Suma de dos Sinusoidales con Diferente frecuencia angular.
y=conv(x,h);
Ysalida3=stem(n,y(1:length(n)),'filled');
grid;
xlabel('n')
ylabel('Y[n]')
return
GRAFICA 3.
FUNCIÓN IMPULSO

function[Ysalida4]=graficadiscreta(x)%Función Impulso
delta=[zeros(1,10),1,zeros(1,10)]
t=-1:0.1:1
stem(t,delta)
xlabel('n')
ylabel('x[n]')
return
GRAFICA 4.
IMPULSO UNITARIO CON MEJOR RESOLUCIÓN

function[Ysalida5]=graficadiscreta5(x)%función impulso
%Impulso Unitario con mejor resolución
Ysalida5=[zeros(1,1000),1,zeros(1,1000)]
t=-1:0.001:1
stem(t,Ysalida5)
xlabel('n')
ylabel('x[n]')
return
GRAFICA 5.
SEÑAL RAMPA UNITARIA

function[Ysalida6]=graficadiscreta(x)%Señal Rampa Unitaria


n=0:30
n1=0:60
rampa1=n
rampa=[zeros(1,30),rampa1]
stem(n1,rampa)
xlabel('n')
ylabel('x[n]')
return
GRAFICA 6.
GRAFICA SENOSOIDAL AMORTIGUADA

function[Ysalida]=graficadiscreta(x,t)%Grafia senosoidal amoriguada.


t=-0:1:30;
x=exp(-.1*t).*sin(2/3*t); %amortiguada
Ysalida2=stem (t,x,'filled');
grid;
xlabel('time(s)')
ylabel('x[n]')
return
GRAFICA 7.
SEÑAL SENOSIDAL ASEN(WOT+PHI)

function[Ysalida7]=graficadiscreta7(x)%señal senosidal asen(wot+phi))


A=4
wo=20*pi
phi=pi/6
t=0:0.001:1
seno=A*sin(wo*t+phi)
stem(t,seno)
%plot(t,seno)
xlabel('n')
ylabel('x[n]')
return

You might also like