Matlab+Notes - b=1/5*ones(1,5); a=1; [H F]=freqz(b,a,w);...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Matlab Notes 1.Filter % 5 point running average filter w=-pi:pi/100:pi; b=1/5*ones(1,5); a=1; [H F]=freqz(b,a,w); subplot(2,1,1),plot(w,abs(H)); subplot(2,1,2),plot(w,angle(H)); 2.Impulse % 5 point running average filter w=-pi:pi/100:pi;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b=1/5*ones(1,5); a=1; [H F]=freqz(b,a,w); x=filter(b,a,[1 zeros(1,10)]); n=0:10; stem(n,x); 3.Pole-zero % 5 point running average filter w=-pi:pi/100:pi; b=1/5*ones(1,5); a=1; [H F]=freqz(b,a,w); y=roots(b) zplane(b,1)...
View Full Document

Ask a homework question - tutors are online