|
|
Line 1: |
Line 1: |
| == Summary ==
| | Wilber Berryhill is the name his parents gave him and he completely digs that name. To perform lacross is some thing I truly appreciate doing. He works as a bookkeeper. Alaska is the only location I've been residing in but now I'm contemplating other choices.<br><br>Here is my web-site; love psychic readings, [http://www.article-galaxy.com/profile.php?a=143251 www.article-galaxy.com], |
| This svg file is made by Ugur Zongur using GNU Octave and Gnuplot in order to demonstrate linearity or non-linearity of phase plots of various filters.
| |
| | |
| These are the phase plots of:
| |
| | |
| '''a)''' FIR Filter (Type II) with impulse response: | |
| <math>h[n]=\delta[n-3] + \delta[n-2] + \delta[n-1] + \delta[n]</math> | |
| | |
| '''b)''' FIR Filter (Type IV) with impulse response:
| |
| <math>h[n]=\delta[n-3] + \delta[n-2] - \delta[n-1] - \delta[n]</math>
| |
| | |
| '''c)''' IIR Filter with impulse response:
| |
| <math>h[n]={{\delta[n-1] + 2\delta[n] - 3h[n-1]} \over {4}}</math>
| |
| | |
| '''d)''' FIR Filter with impulse response:
| |
| <math>h[n]=4\delta[n-3] + 3\delta[n-2] + 2\delta[n-1] + \delta[n]</math>
| |
| | |
| All plots are Arg[<math>H(e^{j\omega})</math>] vs normalized <math>\omega</math> with <math>pi</math> .
| |
| | |
| GNU Octave and Gnuplot codes used to create the file is given below:
| |
| ----
| |
| | |
| GNU Octave Code:
| |
| | |
| % Phase Demonstration of basic Filters
| |
| % Written By: Ugur Zongur
| |
|
| |
| a=[1 1 1 1]; % Symmetrical (So this has got Linear Phase)
| |
| [pp_1,w] = freqz(a,1);
| |
|
| |
| a=[1 1 -1 -1]; % Symmetrical (So this has got Linear Phase)
| |
| [pp_2,w] = freqz(a,1);
| |
|
| |
| a=[1 2]; % Numerator
| |
| b=[3 4]; % Denominator
| |
| [pp_3,w] = freqz(a,b);
| |
|
| |
| a=[4 3 2 1]; % Not Symmetrical (So this hasn't got Linear Phase)
| |
| [pp_4,w] = freqz(a,1);
| |
|
| |
| data = [w/pi ; arg(pp_1); arg(pp_2); arg(pp_3); arg(pp_4)]';
| |
|
| |
| save -ascii 'Phase_Plots.dat' data;
| |
| | |
| ----
| |
| | |
| Gnuplot Code:
| |
| | |
| # set the output
| |
| set terminal svg
| |
| set output "Phase_Plots.svg"
| |
|
| |
| # axis properties
| |
| set xrange [0:1]
| |
| set key off
| |
|
| |
| # Set up a four-pane multiplot
| |
| set size 1, 1
| |
| set origin 0, 0
| |
| set multiplot
| |
|
| |
| set title "a) FIR Filter (Type II) having Linear Phase"
| |
| set size 0.5,0.5
| |
| set origin 0 , 0.5
| |
| plot "Phase_Plots.dat" using 1:2 with lines linewidth 2
| |
|
| |
| set title "b) FIR Filter (Type IV) having Linear Phase"
| |
| set size 0.5, 0.5
| |
| set origin 0.5 , 0.5
| |
| plot "Phase_Plots.dat" using 1:3 with lines linewidth 2
| |
|
| |
| set title "c) IIR Filter having Non-Linear Phase"
| |
| set size 0.5, 0.5
| |
| set origin 0 , 0
| |
| plot "Phase_Plots.dat" using 1:4 with lines linewidth 2
| |
|
| |
| set title "d) FIR Filter having Non-Linear Phase"
| |
| set size 0.5, 0.5
| |
| set origin 0.5 , 0
| |
| plot "Phase_Plots.dat" using 1:5 with lines linewidth 2
| |
| | |
| | |
| == Licensing ==
| |
| {{PD-self|date=October 2006}}
| |
| | |
| {{Copy to Wikimedia Commons|bot=Fbot|priority=true|date=March 2012}}
| |
Wilber Berryhill is the name his parents gave him and he completely digs that name. To perform lacross is some thing I truly appreciate doing. He works as a bookkeeper. Alaska is the only location I've been residing in but now I'm contemplating other choices.
Here is my web-site; love psychic readings, www.article-galaxy.com,