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\".