Commit 7279a5bc authored by WALL-E's avatar WALL-E
Browse files

1.4第二题

parent 57342013
Loading
Loading
Loading
Loading

b_1_4.m

0 → 100644
+20 −0
Original line number Diff line number Diff line
n1=-5:9;
n2=-6:9;
x1=[zeros(1,5),ones(1,10)];
x2=[zeros(1,4),ones(1,11)];
subplot(3,1,1);
stem(n1,x1,'b--^');
title('1.4(b)-1');
xlabel('n');
ylabel('x[n]=u[n]');
subplot(3,1,2);
stem(n1,x2,'m--h');
title('1.4(b)-2');
xlabel('n');
ylabel('x[n+1]=u[n+1]');
y1=[0 x1+x2];
subplot(3,1,3);
stem(n2,y1,'r--p');
title('1.4(b)-3');
xlabel('n');
ylabel('y[n]=x[n]+x[n+1]');
 No newline at end of file