Está en la página 1de 1

% k = -1

%
% n = [-3:11]
% xn = [0 0 0 2 1 -1 3 0 0 0 0 0 0 0 0]
% stem(n,xn)
% hold on
% stem(n-k,xn)

% tercerpunto
n = [0:32]
xn= exp(-j*pi*n/8);
stem(n,real(xn));xlabel('r');ylabel
subplot(2,2,1)
stem(n,imag(xn));xlabel('-r');ylabel('-y');legend('eje y');title('y');
subplot(2,2,2)
stem(n,abs'(xn))xlabel,'-r'('frecuencia');ylabel(
subplot(2,2,3)
stem(n,angle(xn))xlabel,'-r'('frecuencia');ylabel,'-y'(
subplot(2,2,4);

% cuarto punto

x = [-1:1/10000:20000];

% quinto punto

A = 3
t1= 0:1/100:1;
x5= -2+A*cos(2*pi*t1)+sin(40*pi*t1)
plot(t1,x5);

También podría gustarte