What I am trying to do is to design a Butterworth Bandpass filter using Matlab, High...

50.1K

Verified Solution

Question

Electrical Engineering

What I am trying to do is to design a Butterworth Bandpassfilter using Matlab, High frequency must equal to 16 Hz and lowerfrequency must be 10Hz (passBand). and the input signal must be awhite noise signal.
here is my code :

mu=0;

sigma=2;

X= sigma*randn(500,1)+mu; %Generating White Noisesignal

Fs=500;%Sampling Frequency

Fh= 16;

Fl=10;

order=6;

[b,a]=butter(order,[FhFl]/(Fs/2),'bandpass');%Butterworth BandPass filter

XX=filtfilt(b,a,X);%filter the signal both forward andbackword in time

Actually, I am not sure about Fs value that I have chosen and Ido not know the criteria of choosing it for such a filter.Moreover,I am getting Weird plot when trying to plot XX \"it may be correctthough\".

Answer & Explanation Solved by verified expert
4.5 Ratings (783 Votes)
Hi According to the sampling therom the Sampling Frequency must be two greater than the original signal Here you are generating white noise which is broadband signal So    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students