Digital Filtering Project Description
Magnitude Frequency Response
|[h,w ] = freqz(den,num); figure plot(w, 20*log10(abs(h)), 'Linewidth',1.5) title('Frequency Response') xlabel('Frequency [ rad / sample ]') ylabel('Magnitude [ dB ]') figure plot(w, angle(h)*180/pi, 'Linewidth',1.5) title('Frequency Response') xlabel('Frequency [ rad / sample ]') ylabel('Phase [ degree ]')|
|num = [1 zeros(1,N-1) -1] den = N*[1 -1] zplane(num,den)|
8) Is this filterLow Pass Filters, High Pass Filter or Band Pass Filter? Answer: It is a Low Pass Filter, because averaging smooths out the signal, it, in fact, reduces the effects of high frequency components.
9) For this data give the sampling period in hours. Ts = 343*24/512 = 16 h, 4 min, 41 sec
Conclusions regarding the effect of applying these type of filters to the data
As it can be seenfromthegraphs, themovingaverageissmoothingthe curve and followstheoveralltrend of the curves. Howeveritmaylagsbehindthetrend and itmayalsodoesnotprovide a goodestimate at areaswithbigfluctuations (likeforexample at theendpart of “No. of Cases”).