Professional Documents
Culture Documents
COD:57377
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