Evaluating how window duration affects frequency analysis

Assignment Help Computer Engineering
Reference no: EM13861741

The purpose of this assignment is to learn about how the duration of a signal affects the properties of its Fourier Transform.

Part 1: In Matlab, create the following signal x(t) with a duration of 50 seconds.

x(t) = cos(2π · 1 · t) + cos(2π · 2 · t)

Use myFFT to generate the Fourier Transform of x(t). Plot the absolute value of the Fourier Transform and zoom in to the range 0 to 10Hz. Can you see the two peaks corresponding to the cosines at frequencies f = 1Hz and f = 2Hz?

Now repeat the above steps but reduce the signal duration first to 5 seconds, then to 1 second. How does the Fourier Transform change as a result of shortening the signal duration? Can you think of why this might be happening (you might want to look back at Computer Assignment 1 for some insight)? If you are supposed to analyze the frequency content of a signal, would you prefer that the signal be long or short? Why?

Part 2: For signals where the frequencies vary with time, we typically use a tool called a spectrogram to analyze the signal. The spectrogram basically takes the signal, splits it down into windows, and takes the Fourier Transform of the signal in each window. In this part, you will be taking the spectrogram of a signal and evaluating how the window duration affects the frequency analysis.

Use your results from Part 1 to inform your observations.

From the Blackboard page, download mySpectrogram.m as well as the audio files piano.wav and sax.wav. Use the wavread command to load the piano signal into Matlab. Recall that you can use the soundsc function to listen to the imported sound. Use mySpectrogram to look at the frequency content. That command can be called by entering mySpectrogram(s,win,fs) where s is the imported signal, win is the window length (in seconds) and fs is the sampling rate of the signal. Create the spectrogram using window durations of 0.01, 0.1, and 0.25 seconds. How do the spectrograms differ? Why? What are the tradeoffs that an engineer should consider when selecting a spectrogram window duration? Although the piano sound is a bit easier to interpret, you might also consider loading and analyzing the sax sound since it has lots of short notes instead of a handful of long ones.

One more helpful hint: you can zoom in on your spectrogram plots by either using the magnifying glass icon in the plot window, or by using the xlim and ylim commands

Reference no: EM13861741

Questions Cloud

About the monopolistic firm : If a monopolistic firm (price searcher) can sell 9 units at a price of $100 each but must reduce its price to $80 in order to sell 10 units, then
Demand for the product of a business : The demand for the product of a business is given by q = 50 - 2p. If the price of the product is p = 10 dollars, the revenue is
What type of structure will be best suited to amultinational : What type of structure will be best suited to a multinational Internet retailer? Why?
Theoretically serve as floor for the fed funds rate : Which of the following is a rate that should theoretically serve as a floor for the Fed funds rate? A dealer is said to be running a "matched book" if. An increase in the supply of reserves in the banking system leads to an increase in the Fed funds ..
Evaluating how window duration affects frequency analysis : For signals where the frequencies vary with time, we typically use a tool called a spectrogram to analyze the signal. The spectrogram basically takes the signal, splits it down into windows, and takes the Fourier Transform of the signal in each wi..
Is this isomer of stilbene dibromide chiral : Draw a Newman projection for stilbene dibromide. Is this isomer of stilbene dibromide chiral?
Resulting equilibrium cause in the market : During 2009, the demand for LCD televisions appeared to be falling. At the same time, some industry observers expected that several smaller television manufacturers might exit the market. Use a demand-and-supply graph to analyze the effects of these ..
Given the reactant side of the total ionic : Given the reactant side of the total ionic equation for the neutralization reaction of lithium hydroxide (LiOH) with hydrochloric acid (HCl), write the total ionic equation (also known as the complete ionic equation) by entering both the reactant and..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define the best possible scenario for an organization

If in a hypothetical situation your company was capable to hire only either technically sound managers with weak leadership skills OR strong leaders with less knowledge/interest in routine management, that would you opt for and why.

  Who know good technical knowledge of the project field

suppose that there is some consensus with the basic premise that most skills can be learnt, which would you expect to be the more productive task, if re-skilling Project Managers.

  List and describe the ways to backup the registry

Describe the Windows kernel, including its two main components and list and describe the ways to backup the registry.

  Make program that has a declaration in main () to store

require a C program that has a declaration in main () to store the following numbers into an array named rates:2.3,3.3,4.4,5.5,6.0. There should be a function call to show () that accepts rates in a parameter named rates and then displays the numb..

  Generating the printstream object

Generate a PrintStream object utilizing the dos and allocate the resulting reference to ps, a PrintStream variable which has already been declared.

  Build a 4-bit parallel adder

Build a 4-bit parallel adder by using four "Full Adder" devices.

  Taskanswer the question below in an academically rigorous

taskanswer the question below in an academically rigorous manner using business report style with claims supported by

  Questiona declare principles behind object oriented

questiona declare principles behind object oriented software development and describe why it is considered better than

  Calculate button finds charges and displays them in controls

Job Information FormThe Job Information form must have text boxesfor the user to enter the job number, customer name, amount charged forparts, and the hours of labor. Include labels and text boxes for Parts,Labor, Subtotal, Sales Tax, and Total.

  Developing the fsm diagram

Develop the FSM diagram showing how to identify a DOS-like file name containing an optional leading drive letter and a colon, followed by an optional backslash, zero or more directory name isolated by the backslashes.

  Give the criteria on creating functions

Program code can be organized by the use of functions. What are the criteria on creating functions? For example, do you limit the function to a certain number of lines of code, to a set of common function.

  Implement needham-schroeder symmetric key protocol both

implement needham-schroeder symmetric key protocol both original version and fixed version using python.the term

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd