filter:滤波函数,可用来解差分方程. y = filter(b,a,X) [y,zf] = filter(b,a,X) [y,zf] = filter(b,a,X,zi) y = filter(b,a,X,zi,dim) [...] = filter(b,a,X,[],dim) eg. 输入为 求y. clc; clear; n = :; x1 = exp(1i*(pi/)*n); a = [ 0.9]; b = [ -0.25]; y1 = filter(a,b,x1); stem(n,