Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A requirement exists for an FIR digital filter to meet the following specificati

ID: 2291617 • Letter: A

Question

A requirement exists for an FIR digital filter to meet the following specifications 1. Passband: 150-250 Hz 2. Transition width: 50 Hz 3. Passband ripple: 0.1 dB 4. Stopband attenuation: 60 dEB 5. Sampling frequency: 1 KHz Use the window method and design a filter that meets these specifications. The appropriate Matlab command to achieve this is the 'firl' command. Plot the magnitude (in dB) and phase characteristics for your filter (is the phase plot consistent with the theory ?). Build your fil ter using both the (king) Kaiser window and any other window choice that meets the design specifications

Explanation / Answer

clear all;
clc;
close all;
%%

Passband_frequency=150;      % in Hz
Stopband_frequency=250;      % in Hz
Passband_ripple=0.1;         % in dB
Stopband_attenuation=60;    % in dB
Sampling_frequency= 1000;    % in Hz

filt= designfilt('lowpassfir', 'PassbandFrequency',...
            Passband_frequency, 'StopbandFrequency', Stopband_frequency, ...
            'PassbandRipple', Passband_ripple, 'StopbandAttenuation', Stopband_attenuation, ...
            'SampleRate', Sampling_frequency);
fvtool(filt);
figure;
phasez(filt);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote