Commit df4f9faf authored by WALL-E's avatar WALL-E
Browse files

1.4第四题

parent e303cf9d
Loading
Loading
Loading
Loading

d_1_4.m

0 → 100644
+25 −0
Original line number Diff line number Diff line
n= -5:1:5;
x1=[zeros(1,5) 1 zeros(1,5)];
x2=5*[zeros(1,5) 1 zeros(1,5)];
y1=sin((pi/2)*x1);
y2=sin((pi/2)*x2);
subplot(4,1,1);
stem(n,x1);
title('1.4 (d)-1');
xlabel('n');
ylabel('x1[n]');
subplot(4,1,2);
stem(n,x2);
title('1.4 (d)-2');
xlabel('n');
ylabel('x2[n]');
subplot(4,1,3);
stem(n,y1,'m--s');
title('1.4 (d)-3');
xlabel('n');
ylabel('sin(\pi/2) x1[n]');
subplot(4,1,4);
stem(n,y2,'r--h');
title('1.4(d)-4');
xlabel('n');
ylabel('sin(\pi/2) x2[n]');
 No newline at end of file