Question

Calculate the FIR LPF with a cutoff frequency of 1 kHz using MATLAB (sampling frequency 20...

Calculate the FIR LPF with a cutoff frequency of 1 kHz using MATLAB (sampling frequency 20 kHz, filter order 10) and output the frequency response curve

Calculate the FIR band pass filter passing only 1kHz-9kHz using MATLAB (sampling frequency 20kHz, filter degree 20) and output the frequency response curve.

Homework Answers

Answer #1

clc
clear all
close all
fs=20e3;
N=20;
Fl=1e3;  
Fh=9e3;
%------------Band Pass Filter Design--------------------------
[A,B,C,D]=butter(N,[Fl Fh]/(fs/2),'bandpass');
sos=ss2sos(A,B,C,D);
fvtool(sos)
title('Magnitude Response of Bandpass filter')

%---------------Low Pass Filter Design-----------------------
N1=10;
F1=1e3;
fs=20e3;
[K,L ,M, N2]=butter(N1,Fl/(fs/2),'low');
sos=ss2sos(K,L,M,N2);
fvtool(sos)
title('Magnitude Response of LowPass Filter')

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Design an active-RC low pass second order Butterworth filter for a cutoff frequency of 1 kHz,...
Design an active-RC low pass second order Butterworth filter for a cutoff frequency of 1 kHz, and a pass band gain of 2 V/V. Use a 741 Op Amp. If using Table I, use a capacitor value of 0.1 μF for C and C1, otherwise you may use any capacitors available in the lab. If applicable, make an excel worksheet showing the calculations required for the above design.  Choose appropriate real resistor values for the designed circuit and simulate this circuit...
DON'T USE MATLAB to design a digital filter using the window method to meet the following...
DON'T USE MATLAB to design a digital filter using the window method to meet the following requirements: Stop band attenuation: ≥43 dB and <49 dB Pass band edge frequency: 3.2 kHz Stop band: 0 to 2.4 kHz Maximum pass band ripple: 0.0546 dB Phase response: Linear. Sampling frequency: 16 kHz Determine the first 6 filter coefficients. NB: Please don't use MATLAB to get the answers. do it manually!
PLEASE ANSWER QUESTION #2 Design an FIR band-pass filter with cutoff frequencies of π/ 4 and...
PLEASE ANSWER QUESTION #2 Design an FIR band-pass filter with cutoff frequencies of π/ 4 and π/ 6 . The filter’s impulse response should have 81 samples (i.e. N = 81). Use a Blackman filter window. (a) Plot the filter’s impulse response (b) Plot the magnitude of the filter’s frequency response, in dB. (i.e. 20 log(|H(e jω)|)) (c) Print out the MATLAB code used in the filter design 2. Use the filter designed in #1 to filter a random input...
Design a band-pass or band-rejection filter satisfying the following requirements: 1-Central Frequency 10 kHz 2-Bandwidth 1...
Design a band-pass or band-rejection filter satisfying the following requirements: 1-Central Frequency 10 kHz 2-Bandwidth 1 kHz 3-Gain of 20 dB or higher and then do the hand calculations and Gain versus frequency plots with 3 dB markdown.
MATLAB FIR filter design. The audio file, covering the frequency range of roughly 0 to 3000...
MATLAB FIR filter design. The audio file, covering the frequency range of roughly 0 to 3000 Hz, is very badly corrupted with high?level noise. Your problem is to design a digital filter that will sufficiently attenuate the noise so that the audio speech is intelligible. (sorry but chegg doesn't allow me to attach the wav file) Here is the design template: clear, clc % clear all variables %% Read in the noisy audio signal from the file 'CapnJ.wav' using audioread...
The following question has to be implemented using matlab programming and fdatool a. Extract samples of...
The following question has to be implemented using matlab programming and fdatool a. Extract samples of a music file of a suitable format (sample.mp3, made available on the moodle) providing a duration of 2 seconds playtime, add a colored noise centered around 4.5kHz to the extracted samples so that the SNR is -15 dB. b. Realize an FIR (hamming) and IIR lowpass filter of order 10 having a cutoff frequency of 3kHz respectively. (Obtain the sampling frequency value from the...
Problem 1....... you can use Matlab The following Scilab code generates a 10-second “chirp” with discrete...
Problem 1....... you can use Matlab The following Scilab code generates a 10-second “chirp” with discrete frequencies ranging from 0 to 0.2 with a sampling frequency of 8 kHz. clear; Fs = 8000; Nbits = 16; tMax = 10; N = Fs*tMax+1; f = linspace(0.0,0.2,N); x = zeros(f); phi = 0; for n=0:N-1 x(n+1) = 0.8*sin(phi); phi = phi+2*%pi*f(n+1); end sound(x,Fs,Nbits); sleep(10000); //allows full sound to play Add code that calculates and plays y (n)=h(n)?x (n) where h(n) is the...
Using a 741 op-amp for every stage, design this circuit: The input stage has a voltage...
Using a 741 op-amp for every stage, design this circuit: The input stage has a voltage gain of 10 and input impedance of 50 K?. The low pass filter stage has a Sallen-Key (VCVS) third order butterworth response and a cutoff frequency of 5KHz. The output buffer stage has a voltage gain of 10.
Problem 3 you can use Matlab and also i give u the Problem 1 code its...
Problem 3 you can use Matlab and also i give u the Problem 1 code its on Matlab Using the same initial code fragment as in Problem 1, add code that calculates and plays y (n)=h(n)?x (n) where h(n) is the impulse response of an IIR bandpass filter with band edge frequencies 750 Hz and 850 Hz and based on a 4th order Butterworth prototype. Name your program p3.sce this is the Problem 1 code and the solutin clear; clc;...
Problem 1 ...... you can use Matlan i got one so all what i need is...
Problem 1 ...... you can use Matlan i got one so all what i need is 2, 3 and 4 one of them or all of them .. thanks The following Scilab code generates a 10-second “chirp” with discrete frequencies ranging from 0 to 0.2 with a sampling frequency of 8 kHz. clear; Fs = 8000; Nbits = 16; tMax = 10; N = Fs*tMax+1; f = linspace(0.0,0.2,N); x = zeros(f); phi = 0; for n=0:N-1 x(n+1) = 0.8*sin(phi); phi...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT