I\'m a newbie to matlab and I\'m now stucked at signal filtering. Although I did
ID: 3625422 • Letter: I
Question
I'm a newbie to matlab and I'm now stucked at signal filtering. Although I did some matlab laboratories before but actually I did not understand much about them. So please help me step by step, with my question below."How to write a sound signal filter (including low-pass and high-pass filter) using a frequency domain implementation."
It's Fourier Transform, isn't it? I heard of another transform like Laplace transform but I haven't studied it yet. So just help me with the use of Fourier Transform.
Please tell me how to think of an approach for this problem, what command I should use. Thank you in advance.
Explanation / Answer
Matlab allows to read wave (.wav) sound file and you can filter this by using the command "fir". (You dont have to use fourier transform in matlab) here is my example: 1) Initialization and choose sampling bits (Define sampling frequency fs) FileName = input('Input File: ','s'); [x,fs,nbits] = wavread(FileName,[samp0 samp1]); 2) Design a nth-order lowpass flter with cutoff frequency fc = 0.125fs a = fir1(n,0.25); 3) Use filter commands y1 = filter(b,1,x(:,1)); 4) Play the sound: y = [y1 y2]; sound(y,fs);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.