Consider the following sinusoids signals i x (n) = 5 cos (100nt) x (n) = 5...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the following sinusoids signals i x (n) = 5 cos (100nt) x (n) = 5 cos (400nt +0.25n) x3 (n) = 5 cos (600nt +0.5n) (a) Write a MATLAB code to sample each sinusoid and generate a sum of three sinusoids, that is, x(n) x (n) + x (n) + x3 (n), using a sampling rate of 4,000 Hz. Plot x(n) over a range of 0.1 seconds. (b) Use the DFT to compute x(n) spectrum (i.e., X(k)) where the frequency resolution Af is equal to or less than 8 Hz. Thus, = Fs. Then plot the single-side spectrum and Af compute the power spectrum available to the folding frequency (). = (c) Use the MATLAB function fft() to compute DFT coefficients, and plot and examine the spectrum of the signal x(n).(Note: fft () works on data points of power of 2N). You need to write a short report which includes a comparison between the using of DFT and FFT methods (i.e., DFT and FFT) to compute the spectrum of the given signals. In addition, submit three figures that display (Amplitude Spectrum and Power Spectrum using subplot (2,1, xx) for each signal. In addition, submit your m-file in the last section of your report. Note your m-file must be named after your first and last name (For example in my case AhmedShorman.m) Consider the following sinusoids signals i x (n) = 5 cos (100nt) x (n) = 5 cos (400nt +0.25n) x3 (n) = 5 cos (600nt +0.5n) (a) Write a MATLAB code to sample each sinusoid and generate a sum of three sinusoids, that is, x(n) x (n) + x (n) + x3 (n), using a sampling rate of 4,000 Hz. Plot x(n) over a range of 0.1 seconds. (b) Use the DFT to compute x(n) spectrum (i.e., X(k)) where the frequency resolution Af is equal to or less than 8 Hz. Thus, = Fs. Then plot the single-side spectrum and Af compute the power spectrum available to the folding frequency (). = (c) Use the MATLAB function fft() to compute DFT coefficients, and plot and examine the spectrum of the signal x(n).(Note: fft () works on data points of power of 2N). You need to write a short report which includes a comparison between the using of DFT and FFT methods (i.e., DFT and FFT) to compute the spectrum of the given signals. In addition, submit three figures that display (Amplitude Spectrum and Power Spectrum using subplot (2,1, xx) for each signal. In addition, submit your m-file in the last section of your report. Note your m-file must be named after your first and last name (For example in my case AhmedShorman.m)
Expert Answer:
Related Book For
Signals and Systems using MATLAB
ISBN: 978-0128142042
3rd edition
Authors: Luis Chaparro, Aydin Akan
Posted Date:
Students also viewed these programming questions
-
1. Given three sinusoids with the following amplitude and phases: x 1 (t) = 5 cos (2 (500)t) x 2 (t) = 5 cos (2 (1200)t + 0.25 ) x 3 (t) = 5 cos (2(1800)t + 0.5 ) a. Create a MATLAB program to sample...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Review the Financial Statements provided to each group on Blackboard (You may use laptops for this exercise). [ Focus on: a) Is the company Profitable b) Does the company have a lot of liabilities c)...
-
Suppose that during 2017, the market for architectural jobs increases by 10%. Assume that any increase in market share more than 10% and any decrease in selling price are the result of strategic...
-
On January 1, 2020, the first day of its fiscal year, Carter City received notification that a federal grant in the amount of $560,000 was approved. The grant was restricted for the payment of wages...
-
For the batch distillation column in Example 22.3, devise a recipe that will decrease the batch time without reducing the amount of product recovered. Estimate the increase in the utility usage. Data...
-
A small company maintains a petty cash fund for minor expenditures. In June and July 2011, the following transactions took place: a. The fund was established in the amount of $100.00 on June 1 from...
-
Suppose the pressure in the esophagus is - 1.95 mm Hg while that in the stomach is + 18.5 mm Hg. To what height, in centimeters, could stomach fluid rise in the esophagus, assuming it has a density...
-
The Gilbert Air-Conditioning Company is considering the purchase of a special shipment of portable air conditioners manufactured in Japan. Each unit will cost Gilbert $80, and it will be sold for...
-
An individual is 48 years old. At the end of each month, he deposits $320 in a retirement account that pays 5.44% interest compounded monthly (a) After 8 years, what is the value of the account? (b)...
-
Go to the Simon Sinek video on YouTube, watch it, what are the key messages from this video? How does what Simon say align with what we have been talking about in class? AND, provide a personal...
-
Johann Bach is 54 years old and his spouse, Maria, is 67. Maria is eligible for the disability tax credit. Johann's net income for 2021 is $109,000, while Maria's 2021 net income is $6,200 and is all...
-
March 1 Issue common stock in exchange for cash of $1,200. March 3 March 5 March 7 Purchase sewing equipment by signing a note with the local bank, $900. Pay rent of $420 for March. Martha, a...
-
K A picture frame measures 12 cm by 30 cm on the outside, and 88 cm of picture shows. Find the width of the frame around the picture. The width of the frame is cm.
-
2. Assume demand is given by Qd= 250-2P and supply is given by Qs= -25 + 3.5P. A. Sketch the market indicating the reservation price and minimum selling price. B. Determine the equilibrium price and...
-
Q.3) In Table 1, some physical properties of superheated water are given with respect to temperature. Please find the value of internal energy, u, of superheated water at 216C by using (a)...
-
Determine by direct integration the values of x for the two volumes obtained by passing a vertical cutting plane through the given shape of Fig. 5.21. The cutting plane is parallel to the base of the...
-
To compute the 2D-DFT one can use 1D-DFT by separating the equation for the 2D-DFT as (a) Using the one-dimensional MATLAB function fft to implement the above result, and for the signal with values M...
-
A discrete-time system has a unit impulse response h[n]. (a) Let the input to the discrete-time system be a pulse x[n] = u[n] - [n - 4] compute the output of the system in terms of the impulse...
-
To get an idea of the number of bits generated and processed by a digital system consider the following applications: (a) A compact disc (CD) is capable of storing 75 minutes of CD quality stereo...
-
Why are none of the bulbs in Figure 31. 24 lit? Data from Figure 31. 24 Figure 31.24 (1) (iii) NNN
-
In Figure 31. 25, identify the energy conversions that occur between points \(A\) and \(B, B\) and \(\mathrm{C}, \mathrm{C}\) and \(\mathrm{D}\), and \(\mathrm{D}\) and \(\mathrm{A}\). Data from...
-
In Figure 31. 26, bulb B is brighter than bulb C, which in turn is brighter than bulb A. Rank, largest first, \((a)\) the magnitudes of the potential differences across the bulbs, \((b)\) the...
Study smarter with the SolutionInn App