Demo entry 6643329

1

   

Submitted by anonymous on Sep 27, 2017 at 17:17
Language: Matlab. Code size: 253 Bytes.

b=[0,1];a=[1,-1,-1];
[H,w]=freqz(b,a,100);
magH=abs(H);phaH=angle(H);
figure,subplot(2,1,1);plot(w/pi,magH);grid;
xlabel('频率(pi)');ylabel('幅度');title('幅度相应');
subplot(2,1,2);plot(w/pi,phaH/pi);grid;
xlabel('频率(pi)');ylabel('相位(pi)');title('相位响应');

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).