1、1. a) 0.512;,10ynxnny1y.010522.3.54.30yb) 1;,10ynxnny020243842316yyc) 1.0.21;,21,2nynxnxuny0.403.7.2.3126.3.7858431.0. 19uyy .94245.037506u% a)a=.5; b=0 2;n = 0:30;y0 = 0;x0 = 0;x = zeros(size(n);x(1) = 1;y=recur(a,b,n,x,x0,y0);subplot(221),stem(n,y)title(1a)xlabel(n)ylabel(yn)y(1:5) % displays y fo
2、r n=0 to 5, used to double-check hand answers% b)a=2; b=0 2;n = 0:30;y0 = 0;x0 = 0;x = zeros(size(n);x(1) = 1;y=recur(a,b,n,x,x0,y0);subplot(222),stem(n,y)title(1b)xlabel(n)ylabel(yn)y(1:5)% c)a=1.2 .32; b = 1 -1;y0 = 1 2;x0 = 0;x = ones(size(n);y=recur(a,b,n,x,x0,y0);subplot(223),stem(n,y)title(1c)xlabel(n)ylabel(yn)y(1:5)