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...
-
In some cases, individuals engage in cyber squatting so that they can sell the domain names to companies expensively. In other cases, companies engage in cyber squatting by registering domain names...
-
(a) From the curves shown in Figure and using Equation 10.18, determine the rate of recrystallization for pure copper at the several temperatures. (b) Make a plot of ln(rate) versus the reciprocal of...
-
Follow the steps below to prove the LLN without using CLT. (a) Let \(X\) be a random variable with mean \(\mu\) and variance \(\sigma^{2}\). Then for any real number \(\alpha>0,...
-
Memofax, Inc., produces memory enhancement kits for fax machines. Sales have been very erratic, with some months showing a profit and some months showing a loss. The companys contribution format...
-
Define a set X of strings in the symbols 0 and 1 as follows. B. 0 and 1 are in X. R. If x and y are in X, so is xxyy. R2. If x and y are in X, so is xyx. Explain why the string 01001011 EX using the...
-
1.Explain the types of conversion strategy options. Make a recommendation and highlight the choices as it reflects the cost, time, and risk associated with elements of the transition. Explain which...
-
1/If you were the employee committing fraud, what would you try to do with the data to evade detection? 2/How many vendors have similar addresses to employees? 3/What do you notice about the street...
-
if f ( x ) = - 7 x - 6 and g ( x ) = 8 x ^ 2 - 4 x + 3 , find g ( f ( 3 ) )
-
y = cos ^ ( 2 ) x - sin ^ ( 2 ) x then y ' =
-
As the complexity in real-world tasks and computations increases, it is vital to understand how to break up different parts of those tasks to increase efficiency. Select an issue or problem in your...
-
log (4x+10) - log (x+1)=3
-
summarize the speech in a single paragraph of around five sentences, articulate the overall point of the speech. There will be no analysis here. "Work Is Not Your Family"(opens in new window): a...
-
You drive 6.00 km in a straight line in a direction 10 East of North. (a) Find the distances (in km) you would have to drive straight East and then straight North to arrive at the same point. (This...
-
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?...
-
A second-order dynamic system is modeled as \[9 \ddot{x}+6 \dot{x}+\frac{10}{9} x=14 \delta(t), \quad x(0)=0, \quad \dot{x}(0)=-\frac{1}{4}\] a. Find the response \(x(t)\) in closed form. b. Plot the...
-
Consider a first-order system with time constant \(\tau\) and zero initial condition. Find the system's unit-step response for \(\tau=\frac{1}{3}\) and \(\frac{2}{3}\), plot the two curves versus \(0...
-
a. Identify the damping type and find the free response. b. Plot the free response by using the initial command. \(\ddot{x}+3 \dot{x}+4 x=0, \quad x(0)=\frac{2}{5}, \quad \dot{x}(0)=0\)
Study smarter with the SolutionInn App