MATLAB EXERCISE: Perform the following experiment with MATLAB (For help, use the
ID: 3639200 • Letter: M
Question
MATLAB EXERCISE: Perform the following experiment with MATLAB(For help, use the commands help and lookfor; for information about these commands, run Matlab and type help help and help lookfor; you could also consult the Matlab guides available on www.mathworks.com) as some Matlab commands and interfaces might have changed with newer versions of Matlab:
1. Perform the tutorial on how to use the Matlab lter design and analysis tool fdatool, given in Section 4.2.5 (pages 207 to 2.12) in Kuo, Lee, & Tian.
2. Use the lter design and analysis tool fdatool in Matlab to design a lowpass FIR equiripple (also known as minimax) lter with the following specications: filter order = 10; passband and stopbands weights are 1; passband cuto frequency Fpass = 6000 Hz; stopband cuto frequency Fstop = 14400 Hz; samling frequency Fs = 48000. Display and submit the magnitude response, the impulse response, and the lter coecients of the designed lter.
3. Turn on the quantization mode and choose Fixed-point for the lter arithmetic. Also, choose a Q15 format for the lter coecients. Display and submit the magnitude response, the impulse response, and the lter coecients of the resulting filter, and compute the mean squared quantization error.
4. With the quantization mode turned on, choose a Q6 format for the lter co-ecients. Display and submit the magnitude response, the impulse response, and the filter coefficients of the resulting filter, and compute the mean squared quantization error.
Explanation / Answer
The Filter Design and Analysis Tool (FDATool) is a powerful user interface for designing and analyzing filters quickly. FDATool enables you to design digital FIR or IIR filters by setting filter specifications, by importing filters from your MATLAB workspace, or by adding, moving or deleting poles and zeros. FDATool also provides tools for analyzing filters, such as magnitude and phase response and pole-zero plots. FDATool seamlessly integrates additional functionality from other MathWorks products as described in the following table. Use FDATOOL in matlab. If you type >>fdatool in command window, FDAtool will be opened. There you can select FIR or IIR filter, order of filter and cutoff frequency of a filter (either HPF, LPF or BPF). That code will automatically generate .m file for you. Record your voice. Analyze the effect of lowpass filtering on speech signal. Use the Filter Design and Analysis Tool (FDATool) of MATLAB for the purpose of designing LPF filter. Consider separately FIR and IIR filter. A detail demo of the FDATool is available in the website of The Mathworks which I recommend you to visit for acquiring more knowledge in Matlab
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.