A random signal can be generated in Matlab as follows x = randn(1,256); The signal x...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A random signal can be generated in Matlab as follows x = randn(1,256); The signal x is a 256-long signal whose elements are normally distributed with a mear μ = 0 and standard deviation o= 1. Plot a histogram of the random signal histogram(x,64) with the second parameter specifying the number of "bins". Matlab counts how many numbers in r[n] fall within a particular bin's edges. How many numbers are in the "0" bin and the "2" bin? In which bin (or bins) have the highest concentration of numbers? Where are the bins that have very few or no numbers at all, mostly located? Calculate the mean and standard deviation of the generated signal using the functions mean and std. • Plot the discrete-time random signal a[n] with respect to n. Label both axes. Note that x[n] is a discrete-time signal and not a continuous-time signal and the plot should take this into consideration. Also note that (pseudo-)randomly generated signal is real-valued. (Warning: It is virtually impossible for any two of you to have the same plot.) • In this task, four plots are required in a single figure with a 2 x 2 subplot arrangement. First, use fft to calculate the 256-point DFT of the random signal obtained in the previous task. Let the DFT be X[k]. Recall that the DFT is complex-valued and itself discretised, i.e. it is not a continuous function. In the first two subplot panes, plot the real and imaginary parts of X[k] respectively. In the third subplot pane, plot the magnitude of X[k] in decibel,i.e. 20*log10(abs(p)) assuming that p is the variable where the DFT has been saved. In the fourth subplot pane, plot the angle of X[k] in radians. All plots are with respect to k; label the horizontal axes as k and the vertical axes with an appropriate label. • Calculate the average or mean of the following parts of the DFT obtained in the previous task: the real part, the imaginary part, the magnitude (dB) and the angle. A random signal can be generated in Matlab as follows x = randn(1,256); The signal x is a 256-long signal whose elements are normally distributed with a mear μ = 0 and standard deviation o= 1. Plot a histogram of the random signal histogram(x,64) with the second parameter specifying the number of "bins". Matlab counts how many numbers in r[n] fall within a particular bin's edges. How many numbers are in the "0" bin and the "2" bin? In which bin (or bins) have the highest concentration of numbers? Where are the bins that have very few or no numbers at all, mostly located? Calculate the mean and standard deviation of the generated signal using the functions mean and std. • Plot the discrete-time random signal a[n] with respect to n. Label both axes. Note that x[n] is a discrete-time signal and not a continuous-time signal and the plot should take this into consideration. Also note that (pseudo-)randomly generated signal is real-valued. (Warning: It is virtually impossible for any two of you to have the same plot.) • In this task, four plots are required in a single figure with a 2 x 2 subplot arrangement. First, use fft to calculate the 256-point DFT of the random signal obtained in the previous task. Let the DFT be X[k]. Recall that the DFT is complex-valued and itself discretised, i.e. it is not a continuous function. In the first two subplot panes, plot the real and imaginary parts of X[k] respectively. In the third subplot pane, plot the magnitude of X[k] in decibel,i.e. 20*log10(abs(p)) assuming that p is the variable where the DFT has been saved. In the fourth subplot pane, plot the angle of X[k] in radians. All plots are with respect to k; label the horizontal axes as k and the vertical axes with an appropriate label. • Calculate the average or mean of the following parts of the DFT obtained in the previous task: the real part, the imaginary part, the magnitude (dB) and the angle.
Expert Answer:
Answer rating: 100% (QA)
matlab code clc clear all close all N4 here we are dealing with 4 point DFT he... View the full answer
Related Book For
Project Management A Systems Approach to Planning Scheduling and Controlling
ISBN: 978-0470278703
10th Edition
Authors: Harold Kerzner
Posted Date:
Students also viewed these economics questions
-
Answer the following questions by referring to standard electrode potentials at 25oC.
-
Answer the following questions with regard to infrastructure: a. What is infrastructure? b. What are the two methods that might be used to record infrastructure expense from year to year? How is the...
-
Answer the following questions with reference to Figure . a. The base case for a program is priced out at $22 million. The companys chief executive officer is required to obtain written permission...
-
Austin and Anya Gould are a middle-aged couple with two childrenRusty, age 13, and Sam, age 11whom they adopted this year. They also bought a new home in the area to give the children a yard in which...
-
A desk has three drawers. The first contains two gold coins, the second has two silver coins, and the third has one gold coin and one silver coin. A coin is drawn from a drawer selected at random....
-
A pair of narrow, parallel slits separated by 0.250 mm is illuminated by the green component from a mercury vapor lamp ( = 546.1 nm). The interference pattern is observed on a screen 1.20 m from the...
-
Suppose that country A has 20,000 worker-hours available for production and that it initially has the technology given by case 4 of Exercise 1. data from case 4 of the exercise 1 Derive its PPF and...
-
Brooklyn Cabinets is a manufacturer of kitchen cabinets. The two cabinetry styles manufactured by Brooklyn are contemporary and farmhouse. Contemporary style cabinets sell for $90 and farmhouse style...
-
You are a correctional counselor assigned to James, a 17-year-old boy who was charged with robbery after he held up a cab driver while holding a knife to his throat. James was soon apprehended by...
-
1. Assume Wright Plastics is interested only in minimizing delivery costs. What order size should it use, if the pellets are delivered by a truck? How much should it order if they are delivered by...
-
Mercury Limited reported earnings of $ 7 5 , 0 0 0 in 2 0 X 9 . The company has $ 5 5 , 0 0 0 of depreciation expense this year, and claimed CCA of $ 9 0 , 0 0 0 . The tax rate was 2 5 % . At the end...
-
Write a static method that takes double values ymin and ymax (with ymin strictly less than ymax), and a double array a [] as arguments and uses the StdStats library to linearly scale the values in...
-
Write a StdRandom and StdStats client (with appropriate static methods of its own) to estimate the probabilities of getting one pair, two pair, three of a kind, a full house, and a flush in a...
-
Nonrecursive directed percolation. Write a nonrecursive program that tests for directed percolation by moving from top to bottom as in our vertical percolation code. Base your solution on the...
-
Give the recursive calls for flow() in PROGRAM 2.4.5 given the following input: 33 10 1 000 110
-
Prove by induction that the recursive program given in the text makes exactly \(F_{n}\) recursive calls to fibonacci (1) when computing fibonacci( \(n\) ).
-
Amy is two years older than Bill. The square of Amy's age in years is 36 greater than the square of Bill's age in years. What is the sum of Amy's age and Bill's age in years?
-
Which of the ocean zones shown would be home to each of the following organisms: lobster, coral, mussel, porpoise, and dragonfish? For those organisms you identify as living in the pelagic...
-
Is it possible for functional employees to have performed a job so long or so often that they no longer listen to the instructions given by the project or functional managers?
-
An executive once commented that his company was having trouble managing projects, not because of a lack of tools and techniques, but because they (employees) did not know how to manage what they...
-
How should a project manager handle a situation in which the functional employee (or functional manager) appears to have more loyalty to his profession, discipline, or expertise than to the project?...
-
The treatment of outflows on account of dividend and interest is highly debatable as to their activity classification. Give a serious thought to the issue and express your opinion about the best...
-
Reliance Industries Ltd. is the biggest private sector company in India. The following fact sheet about the company and its peer group, as extracted from Capitaline Plus database is reproduced in the...
-
Consider the same setting as Problem 18, but suppose instead 80% of the shareholders redeem their shares, and no warrants are exercised. Data from problem 18 a. What is the amount of cash per share...
Study smarter with the SolutionInn App