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

1.4第一题

parent 4253c2ff
Loading
Loading
Loading
Loading

a_1_4.m

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