This is a file from the Wikimedia Commons

File:G712 butterworth normalized.svg

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Original file(SVG file, nominally 512 × 384 pixels, file size: 55 KB)

Summary

Description
English: normalized Butterworth filter approximation for CCITT G712 specification
Date
Source Own work
Author Fcorthay
SVG development
InfoField
 
The SVG code is valid.
 
This diagram was created with Inkscape, or with something else.

Source code

This graphics has been realized with the help of the following Octave script:

#-------------------------------------------------------------------------------
# Specifications
#
fs = 40E3;
fPass = 3000;
rPass = 0.125;
fStop1 = 4000;
rStop1 = 14;
fStop2 = 4600;
rStop2 = 32;

pointNb = 1000;
AdbMin = 40;

makeGraphics = 1;
figureIndex = 0;

#===============================================================================
# Normalized filter function
#
wLog = 2*pi*logspace(-1, 1, pointNb);
fc = 0.87;
Adb = [];
for order = 8:16
  [num, den] = butter(order, 2*pi, 's');
  while ( length(num) < length(den) )
    num = [0, num];
  endwhile;
  Adb = [Adb; 20*log10(abs(freqs(num, den, wLog)))];
endfor
Adb(Adb < -AdbMin) = -AdbMin;

figureIndex = figureIndex+1;
figure(figureIndex);

semilogx(wLog/(2*pi), Adb);
hold on;
semilogx([wLog(1)/(2*pi), fc, fc], -[rPass, rPass, AdbMin], 'r');
semilogx([fStop1*fc/fPass, fStop1*fc/fPass, fStop2*fc/fPass, fStop2*fc/fPass, wLog(length(wLog))/(2*pi)], ...
        -[0     , rStop1, rStop1, rStop2, rStop2            ], 'r');
hold off;
axis([wLog(1)/(2*pi), wLog(length(wLog))/(2*pi), -AdbMin, 0]);
grid;
xlabel('frequency [Hz]');
ylabel('amplitude [dB]');

if (makeGraphics != 0)
  print -dsvg g712_butterworth_normalized.svg
endif

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
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 give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
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.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

7 June 2012

image/svg+xml

File history

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

Date/TimeThumbnailDimensionsUserComment
current14:15, 27 June 2012Thumbnail for version as of 14:15, 27 June 2012512 × 384 (55 KB)Fcorthay{{Information |Description ={{en|1=normalized Butterworth filter approximation for CCITT G712 specification}} |Source ={{own}} |Author =Fcorthay |Date =2012-06-27 |Permission = |other_versions = }} [[...

Metadata