志在腾飞 幼苗
共回答了13个问题采纳率:84.6% 举报
clc;clear;Y_vect = [1 -0.5 0.25];%Coefficient of numeratorX_vect = [1 2 0 1];%Coefficient of denominatorfigure(1)%Figure of Z-plane, "*" means polars, "o" means zeros.zplane(Y_vect, X_vect);figure(2)%Figure of Time-domain Impulse responseimpz(Y_vect, X_vect);legend('h(n)')t = 0 : 100Input = 5 + 3*cos(0.2*pi*t) + 4*sin(0.6*pi*t) ; %Generate input signalOutput = filter(Y_vect, X_vect, Input);%Response of input signalfigure(3)%Figure of Response for x(n)subplot(2,1,1);stem(Input, 'filled');legend('x(n)')subplot(2,1,2);stem(Output,'filled');legend('y(n)')多给点分,谢谢!
1年前
1年前1个回答
1年前1个回答
1年前3个回答
1年前1个回答
1年前1个回答
1年前1个回答