0% found this document useful (0 votes)
147 views5 pages

Study BUTTERWORTH Analog Filters (Low Pass Filter) .: AIM:-Apparatus Req. Theory: - Algorithm

This document describes an experiment to design and analyze a Butterworth low pass filter using MATLAB. The algorithm involves getting the passband and stopband ripple values and edge frequencies, calculating the filter order, determining the filter coefficients, and plotting the magnitude and phase responses. An example is provided where the passband ripple is 15 dB, stopband ripple is 60 dB, passband frequency is 1500 Hz, stopband frequency is 3000 Hz, and sampling frequency is 7000 Hz.

Uploaded by

keshav0013
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views5 pages

Study BUTTERWORTH Analog Filters (Low Pass Filter) .: AIM:-Apparatus Req. Theory: - Algorithm

This document describes an experiment to design and analyze a Butterworth low pass filter using MATLAB. The algorithm involves getting the passband and stopband ripple values and edge frequencies, calculating the filter order, determining the filter coefficients, and plotting the magnitude and phase responses. An example is provided where the passband ripple is 15 dB, stopband ripple is 60 dB, passband frequency is 1500 Hz, stopband frequency is 3000 Hz, and sampling frequency is 7000 Hz.

Uploaded by

keshav0013
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

 

              EXPERIMENT NO:-05

AIM:-To Study BUTTERWORTH Analog Filters(Low Pass Filter).

Apparatus req. MATLAB SOFTWARE.

Theory:_

Algorithm:-

1.Get the Pass band and Stop band Ripples


2.Get the Pass band and Stop band Edge Frequencies.
3.Get the Sampling Frequency.
4.Calculate the Order of the Filter
5.Find the Filter Cofficients.
6.Draw the Magnitude and Phase Responses.

Program:-

clc;
close all; clear all;
format long;
rp=input('enter the pass band ripple....');
rs=input('enter the stop band ripple');
wp=input('enter the pass band frequency...');
ws=input('enter the stop band frequency...');
fs=input('enter the sampling frequency...');
w1=2*wp/fs;
w2=2*ws/fs;
[n,wn]=buttord(w1,w2,rp,rs,'s');
[j,p,k]=butter(n,wn);
[b,a]=butter(n,wn,'s');
w=0:.01:pi;
[h,om]=freqs(b,a,w);
m=20*log10(abs(h));
an=angle(h);
subplot(2,1,1);
plot(om/pi,m);
ylabel('gain in DB->');
xlabel('(a)normalised frequency...->');
subplot(2,1,2);
plot(om/pi,an);
xlabel('(b)normalised frequency...->');
ylabel('phase in radian..->');
As an Example:-

enter the pass band ripple.....15


enter the stop band ripple60
enter the pass band frequency...1500
enter the stop band frequency...3000
enter the sampling frequency...7000
Exp-6
AIM:-To study a program for the design of butterworth analog high pass filter

Apparatus req. MATLAB SOFTWARE.

Theory:_

Algorithm:-

1.Get the Passband and Stopband Ripples


2.Get the Passband and Stopband Edge Frequencies.
3.Get the Sampling Frequency.
4.Calculate the Order of the Filter
5.Find the Filter Cofficients.
6.Draw the Magnitude and Phase Responses.

Program:-

clc;
close all;
clear all;
format long
rp=input('Enter the passband ripple....');
rs=input('Enter the stopband ripple...');
wp=input('Enter the passband ripple....');
ws=input('Enter the stopband ripple...');
fs=input('Enter the smpling frequency...');
w1=2*wp/fs;
w2=2*ws/fs;
[n,wn]=buttord(w1,w2,rp,rs,'s');
[b,a]=butter(n,wn,'high','s');
w=0:.01:pi;
[h,om]=freqs(b,a,w);
m=20*log10(abs(h));
an=angle(h);
subplot(2,1,1);
plot(om/pi,m);
ylabel('Gain in decibel----->');
xlabel('(a)normalised frequency---->');
subplot(2,1,2);
plot(om/pi,an);
xlabel('(b)normalised frequency---->');
ylabel('Phase in radians----->');
Output Waveform

You might also like