Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using matlab In this homework, you are required to use MATLAB to filter a signal of a finite duration, both in the time-domain and the

Using matlab
image text in transcribed
image text in transcribed
In this homework, you are required to use MATLAB to filter a signal of a finite duration, both in the time-domain and the frequency-domain. The main steps required to carry out the project are: 1. Create a signal using the following MATLAB script load bostemp days =(1:31+24)/24; plot (days, tempc) legend('Hourly Temp','24 Hour Average (delayed) ", "location', "best") ylabel ("Temp (leircc)') xlabel ("Time elapsed from Jan 1, 2011 (days) ") title('Iogan Airport Dry Bulb Temperature (source: NOAA) ") 2. Create a low pass filter and store it in a vector called h, as shown below: if Filter parameters: Fs=8000; fc=500; I = size ( tempc, 1); x=((L1)/2:(L1)/2); hideal =sinc(2x+fc/Es); h = hamming (L) " * hideal; it h is our filter h=h; h=h/sum(h); figure plot (h(L/2300:L/2+300)) Time-domain analysis 3. Use the convolution operation to apply the filter, h, to the signal, tempc. The filtered signal should be stored as tempC_ F11 tered. 4. Plot tempC and tempC_Filtered on the same figure. 5. Compute and plot the magnitude of the Fourier transform of texpc, h, and tempd_Filtered. 6. Compare the signals tempc and tempc_Filtered Frequency-domain analysis 7. Compute the Fourier transform of the signal, tempc, and the filter, h. 8. Multiply the Fourier transform of tempc with the Fourier transform of h, and store the result in a vector called tempc freq. 9. Plot the magnitude of tempc_freq and compare it with the Fourier transform of the signal tempc_Filtered that was computed in step 5. 10. Compute and plot the inverse Fourier transform of tempC freq and store it in a vector called tempC_Filtered_2. Compare tempC_Filtered_2 with the signal tempc_Filtered that was obtained in step 3 . Changing the cutoff frequency Repeat the analysis when the cutoff frequency, fc, of the filter is set to 200,500 , 1000,1500,2000, and 2500 . What is the effect of increasing the cutoff frequency on the sound of the filtered signal? Why the signal does not change when a high value of cutoff frequency is used

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions