Commit 9802e766 authored by WALL-E's avatar WALL-E
Browse files

1.4第六题

parent 4509d0c3
Loading
Loading
Loading
Loading

f_1_4.m

0 → 100644
+25 −0
Original line number Diff line number Diff line
%不满足稳定性、因果性、可逆性
%稳定性、因果性分析(y趋近于无穷,不符合稳定性要求,-x与x取值相同,不满足稳定性)
n=-5:1:5;
x1=n;
y1=n.*x1;
subplot(3,1,1)
stem(n,y1,'g--s');
title('1.4(f)-1');
xlabel('x1');
ylabel('y1');
%可逆性分析(两个不同的x得到了相同的y,不满足可逆性)
x2=[zeros(1,5) 1 zeros(1,5)];
x3=5*[zeros(1,5) 1 zeros(1,5)];
y2=n.*x2;
y3=n.*x3;
subplot(3,1,2);
stem(n,y2,'r--h');
title('1.4(f)-2');
xlabel('x2');
ylabel('y2');
subplot(3,1,3);
stem(n,y3,'m--^');
title('1.4(f)-3');
xlabel('x3');
ylabel('y3');
 No newline at end of file