I got that system $x_n \to x_n-x_{n-1}$, so $h_n=[.....,0,1,-1,0,...]$, with $h_0=1$ and $h_1=-1$, so the transfer function given by:
H(ω)=∞∑i=−∞hne−jwn=h0e−jw(0)+h1e−jw(1)=1−e−jw
. How to knwo the type of filter, if it is high pass filter, low pass filter, etc.
I appreciate your help.
Answer
A completely formal answer would be: given the z-transform of an impulse response h=(0,…,0,1,−1,0,…,0)
which is H(z)=∞∑n=−∞hnz−n=h0+h1z−1
we study the frequency response H(z=ej2πfT)=h0+h1e−j2πfT=h0+h1cos(2πfT)−jh1sin(2πfT)
Clearly, |H(z=ej2πfT)|=0
is the same as |H(z=ej2πfT)|2=0⇔(h0+h1cos(2πfT))2+(h1sin(2πfT))2=0
h20+h21(cos(2πfT)2+sin(2πfT)2)+2h0h1cos(2πfT)=h20+h21+2h0h1cos(2πfT)=0
So the zeros of this transfer function are at f0=k2πTarccos(−h20h212h0h1),k∈Z
If h0=1,h1=−1
then this is a digital differentiator. For f∈[0,1/T]=[0,fs]
the frequencies at which the amplitude response is 0 are f0=12πTarccos(1/2)=kT,k∈Z
so practically f0={0,fs}
which makes this filter the simplest highpass response. As for the phase response it is simply ∠H(z=ej2πfT)=π2−πfT
The dual case is the digital integrator, i.e. h0=h1=1
Another way to derive the differentiatior response is H(z=ej2πfT)=1−e−j2πfT=(ejπfT−e−jπfT)e−jπfT=j2sin(πfT)e−jπfT
We can also define G(f)=|H(z=ej2πfT)|=2sin(πfT)
with f∈[0,fs]
. It is even simpler to see that G(f)=2sin(πfT)=0⇔f={0,fs=1T}
In this way it is also easier to see that the phase response is ∠H(z=ej2πfT)=∠j+∠G(f)−πfT=π2+0−πfT
No comments:
Post a Comment