File:Electronic linear filters.svg

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Full resolution(SVG file, nominally 1,200 × 960 pixels, file size: 24 KB)

[edit] Summary

Description

This picture shows the frequency response of all the classic electronic filters. They can be both analog or digital: the output is the same. The first one is the Butterworth filter, that is the smoothest one but it has no ripples. The last one is the Elliptic filter: it is the sharpest one but it shows ripples in both the pass-band and the stop-band. The two Chebyshev filter in the middle have an average behavior, being quite sharp with ripples in part of the spectrum. All the plots have been obtained using the same parameters and the same number of coefficients, thus showing only the properties of the different filters.

In order to make it, first I created a file called electronic_filters.dat with the following Matlab code:


% order of the filters
N = 5;
% cut-off normalized frequency
band = 0.5;
% ripple in the pass-band (dB)
Rpass = 0.5;
% ripple in the stop-band (dB)
Rstop = 20;

w = 0:pi/255:pi;

[num, den] = butter(N, band, 'low');
butterfilter = abs(freqz(num, den ,w));

[num, den] = cheby1(N, Rpass, band);
cheby1filter = abs(freqz(num, den ,w));

[num, den] = cheby2(N, Rstop, band);
cheby2filter = abs(freqz(num, den ,w));

[num, den] = ellip(N, Rpass, Rstop, band);
ellipfilter = abs(freqz(num, den ,w));

F = [w/pi ; butterfilter; cheby1filter; cheby2filter; ellipfilter];
F = F';

save -ascii 'electronic_filters.dat' F;

then I created the plot with the following Gnuplot code:


# set the output
set terminal svg enhanced size 1200 960 fname "Times" fsize 25
set output "Electronic_linear_filters.svg"

# axis properties
set xrange [0:1]
set yrange [0:1.1]
set xtics axis
set xtics axis
set key off

# Set up a four-pane multiplot
set size 1,1
set origin 0,0
set multiplot

set title "Butterworth"
set size 0.5,0.5
set origin 0,0.53
plot "electronic_filters.dat" using 1:2 with lines linewidth 3

set title "Chebyshev type 1"
set size 0.5,0.5
set origin 0.5,0.53
plot "electronic_filters.dat" using 1:3 with lines linewidth 3

set title "Chebyshev type 2"
set size 0.5,0.5
set origin 0,0.03
plot "electronic_filters.dat" using 1:4 with lines linewidth 3

set title "Elliptic"
set size 0.5,0.5
set origin 0.5,0.03
plot "electronic_filters.dat" using 1:5 with lines linewidth 3

Date

April 2006(2006-04)

Source own work
Lissajous small.svg
This vector image was created with gnuplot.
Author

Alessio Damato

Permission
(Reusing this file)

See below.

[edit] Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • share alike – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
This licensing tag was added to this file as part of the GFDL licensing update.

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • share alike – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

You may select the license of your choice.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current19:16, 26 April 2006Thumbnail for version as of 19:16, 26 April 20061,200 × 960 (24 KB)Alejo2083 (thicker lines (final version??))
19:05, 26 April 2006Thumbnail for version as of 19:05, 26 April 20061,200 × 960 (24 KB)Alejo2083 (right width/height ratio)
18:24, 26 April 2006Thumbnail for version as of 18:24, 26 April 20061,200 × 1,200 (24 KB)Alejo2083 (bigger version)
14:09, 19 November 2005Thumbnail for version as of 14:09, 19 November 2005600 × 480 (21 KB)Alejo2083 ( This picture shows the frequency response of all the classic electronic filters. They can be both analog or digital: the output is the same. The first one is the Butterworth filter, that is the smoothest one but it has no rip)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):

Global file usage

Metadata

Personal tools
Namespaces
Variants
Views
Actions
Navigation
Interaction
Toolbox