Please do both questions! thank you very much!
a)Yes .This is possible with Parks-McClellan optimal FIR filter design using FIRPM command and Least-squares linear-phase FIR filter design using firls.
EX: Uisng FIRPM
f = [0 0.5 0.6 1];
a = [ 1 1 0 0];
b = firpm(17,f,a);
freqz(b,1,512);
__________________________________________________________________________________
b)Using HAmming window:
(i)
MATLAB:
clc;clear all;close all;
N=100;wc=0.3004;
n=0:1:N-1
hLP=wc*(sinc(wc.*(n-((N-1)/2))))
WHAM=hamming(N)'
hWLP=hLP.*WHAM
%Magnitude response
w=0:0.01*pi:pi
[H,w]=freqz(hWLP,[1],w)
figure(1)
subplot(221)
stem(n,WHAM,'r')
title('Hamming window ')
xlabel('n')
ylabel('wh(n)')
subplot(222)
stem(n,hWLP,'m')
title('Impulse response h(n)')
xlabel('n')
ylabel('h(n)')
subplot(223)
plot(w/pi,abs(H),'b')
title('Magnitude response ')
xlabel('w/pi')
ylabel('|H(exp(jw)|')
subplot(224)
plot(w/pi,angle(H),'b')
title('Phase response ')
xlabel('w/pi')
ylabel('<H(exp(jw)>')
figure(2)
freqz(hWLP,[1])
ii)MATLAB:
N=100;wc=0.3004;
h=fir1(N,wc)
freqz(h,1)
The response produced by FIR1 command and the response produced by
using Hamming window without using FIR1 command- both are same why
because the the command FIR1 uses hamming window for its windowing
process.
Please do both questions! thank you very much! (a) Does it have to be this way? Briefly explain, is it possible to have an online FIR filter without a window function? (b) Low-Pass Filter Consider...
a) The transfer function of an ideal low-pass filter is and its impulse response is where oc is the cut-off frequency i) Is hLP[n] a finite impulse response (FIR) filter or an infinite impulse response filter (IIR)? Explain your answer ii Is hLP[n] a causal or a non-causal filter? Explain your answer iii) If ae-0. IT, plot the magnitude responses for the following impulse responses b) i) Let the five impulse response samples of a causal FIR filter be given...
b) When designing a FIR filters, the impulse response of the ideal low-pass filter is usually modified by multiplying it by a windowing function such as the Hamming window which is defined, for an odd number N of samples, by: (2n)-(N-I)-ns(N-1) N-12 wlnl 0.54 + 0.46 cos i What are the advantages of windowing with this function compared 2 with a standard rectangular window? ii) Design a 10th Order Hamming windowed FIR low-pass filter with cut- off frequency at 1000...