代码: h = [1, 2, 3, 4, 3, 2, 1]/15; M = length(h); n = 0:M-1; [Hr, w, a, L] = Hr_Type1(h); a L amax = max(a) + 1; amin = min(a) - 1; figure('NumberTitle', 'off', 'Name', 'Exameple 7.21') set(gcf,'Color','white'); subplot(2,2,1); stem(n, h); axis([-1, 2…