Commit 371bd209 authored by 代育津's avatar 代育津
Browse files

update

2.10的(b)还是要图的,加了张图
parent 99a1bb64
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -37,7 +37,19 @@ close;
% 2.10(b) -------------------------------

% This is not a problem that require to be verified by MATLAB
A = [1 zeros(1, 999) 0.5];
B = [1];
z = filter(B, A, y);

figure;
stem(conv(z,he),'*');
hold on;
stem(y,'p--g')
title('y[n] & z[n]*he[n]');
xlabel('n');

saveas(gcf, "plots/P2_10_b_out.png");
close;
% 2.10(c) -------------------------------
a = [1 zeros(1, 999) 0.5];
b = [1];
(15.9 KiB)
Loading image diff...
+104 KiB
Loading image diff...
(11.6 KiB)
Loading image diff...
(28.6 KiB)
Loading image diff...
Loading