Commit a13e52e3 authored by 袁通's avatar 袁通
Browse files

改了一些

parent 0e5bb8df
Loading
Loading
Loading
Loading

LAB1/P1_4_d_v2.m

0 → 100644
+17 −0
Original line number Diff line number Diff line
n= 0:1:10;
x1=n;
y1=sin((pi/2)*x1);

subplot(2,1,1);
stem(n,x1);
title('1.4 (d)-1');
xlabel('n');
ylabel('x[n]');

subplot(2,1,2);
stem(n,y,'m--s');
title('1.4 (d)-2');
xlabel('n');
ylabel('sin(\pi/2) x1[n]');

saveas(gcf, "LAB1/P1_4_d_out2.png")
 No newline at end of file

LAB1/P1_4_f_v2.m

0 → 100644
+36 −0
Original line number Diff line number Diff line
%不满足稳定性、可逆性
% Stability, invertability not satified
%(y趋近于无穷,不符合稳定性要求)
% Stability, causality analysis
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');

% 时间无关性分析
% time-invariant

saveas(gcf, "LAB1/P1_4_f_out2.png")
 No newline at end of file