Reference no: EM13918259
In Lab 2, you learned various plotting techniques and created an exponentially faded version of a given sinusoidal signal. In this assignment, you will use the so-called Hamming window to obain a modified sinusoid with symmetric fading
characteristics.
Your code should generate three signal vectors and plot them in a SINGLE figure consisting of THREE subplots, arranged in a column. The SUBPLOT function should be used. EACH subplot should have labels on the horizontal and vertical axes, as well as an appropriate title (e.g., INPUT SIGNAL, WINDOW, OUTPUT SIGNAL).
(i) Evaluate the signal vector x which contains samples of the sinusoid x(t) = cos( 7*pi*t/8 )
for t = -20:0.01:20 . Plot x against t in the first subplot. Calculate number of entries in the vector x, and write the result in comments.
(ii) Type "help hamming" to read the docummentation on the function HAMMING. Use the command
w = hamming(N)
where N takes a suitable value, to generate a vector w having the same length as x in part i). Plot w against t in the second subplot.
(iii) Using the transpose operator and element-by-element multiplication (as needed), "apply" the Hamming window w to x. This means multiplying each entry of x by the corresponding entry of w. Denote the resulting vector by y. Plot y in the third subplot.
Submit a zip/rar package containing the following two files (use exact file names as shown):
lastname_labhw_02.m M-file containing the MATLAB code and any additional comments or explanations on separate lines preceded by % (comment character).
Please put your name and student ID on the first line. lastname_labhw_02.pdf Figure saved in PDF format.
The zip/rar package should be named as
Create a debate of current event or controversial topic
: Write a 1,750- to 2,100-word debate paper in which you create a debate of a current event or other controversial topic and provide an analysis of arguments presented for both sides. Complete the following sections in the paper:
|
Sampling distribution of sample mean
: Use software to find the descriptive statistics of the variable Spending. Copy and paste your output below and answer the following questions: If you need to review how to do this, see question 4 on lab activity 2!
|
What are the areas of growth and decline
: Recent GDP Data in Detail - the BEA's January 29, 2010 real GDP estimates is a detailed breakdown of the data by sector and specific types of goods and services, investments, and trade, from 2006 through 2009. Take a good look at the data. What ar..
|
What are the steady-state probabilities of the system being
: What are steady-state probabilities of the system being in the running and down states? What is the breakeven cost for the new hardware component on a time-period basis?
|
Created an exponentially faded version of a given sinusoidal
: Your code should generate three signal vectors and plot them in a SINGLE figure consisting of THREE subplots, arranged in a column. The SUBPLOT function should be used. EACH subplot should have labels on the horizontal and vertical axes, as well..
|
Determination of the discharge coefficient of the orifice
: This is a fluid dynamics experiment involving the filling and emptying of tanks. The objectives of the experiment include: Determination of the discharge coefficient of the orifice and the equivalent length of a pipe mounted at the outlet of the two..
|
Effect of super heat on rankine cycle efficiency
: Explain with neat sketch the effect of super heat on Rankine cycle efficiency - Draw a line diagram and T-S diagram for Ideal regenerative cycle, obtain the expression of its efficiency and turbine work. State the limitations of the Ideal regenerat..
|
Common law or the uniform commercial code
: Determine if the contracts with the businesses will be governed by common law or the Uniform Commercial Code (UCC), and explain why.
|
What is the probability that system will be in delay state
: What is the probability that for the next 60 minutes (two time periods) the system will be in the delay state? Note that this result is the probability of being in the delay state for two consecutive periods.
|