Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2) [5 points] Turn in a single MATLAB *.m format function and a single JPG figure for this question. This is a modified version
Question 2) [5 points] Turn in a single MATLAB *.m format function and a single JPG figure for this question. This is a modified version of Exercise 21 on page 163 of the textbook: Carbon dioxide concentrations (in parts per million) as measured in Barrow, Alaska, and Mauna Loa, Hawaii, are tabulated in Appendix 5C. Besides the linear trend, the data shows an annual cycle in CO2 concentration Write a program that removes the annual cycle from the data by transforming into the frequency domain, zeroing the appropriate values, and transforming back. Your program must plot the power spectrum as a function of frequency Your program must plot the filtered and unfiltered data for Mauna Loa together on one figure; submit a copy of that figure Be clear on what frequency range has been filtered to produce the figure. You should submit a figure with only the annual cycle removed. (However, I suggest you also examine the effect of removing all cycles with periods between six months and one year.) To help you avoid missteps, here's a partial guideline to the steps needed for this program Input frequency band to filter Read in y as column vector Convert... Create x row vector (time in units of years) Create... Use fft.m to take the Discrete Fourier Transform to get the Y vector Calculate frequencies Calculate power spectrum Set power to zero at frequencies within input frequency band Use ifft.m to take the inverse Discrete Fourier Transform to get the filtered y vector Plot power spectrumm Plot unfiltered and filtered time series Question 2) [5 points] Turn in a single MATLAB *.m format function and a single JPG figure for this question. This is a modified version of Exercise 21 on page 163 of the textbook: Carbon dioxide concentrations (in parts per million) as measured in Barrow, Alaska, and Mauna Loa, Hawaii, are tabulated in Appendix 5C. Besides the linear trend, the data shows an annual cycle in CO2 concentration Write a program that removes the annual cycle from the data by transforming into the frequency domain, zeroing the appropriate values, and transforming back. Your program must plot the power spectrum as a function of frequency Your program must plot the filtered and unfiltered data for Mauna Loa together on one figure; submit a copy of that figure Be clear on what frequency range has been filtered to produce the figure. You should submit a figure with only the annual cycle removed. (However, I suggest you also examine the effect of removing all cycles with periods between six months and one year.) To help you avoid missteps, here's a partial guideline to the steps needed for this program Input frequency band to filter Read in y as column vector Convert... Create x row vector (time in units of years) Create... Use fft.m to take the Discrete Fourier Transform to get the Y vector Calculate frequencies Calculate power spectrum Set power to zero at frequencies within input frequency band Use ifft.m to take the inverse Discrete Fourier Transform to get the filtered y vector Plot power spectrumm Plot unfiltered and filtered time series
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started