Part A We will consider a signal x(t), which is composed of a linear combination of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Part A We will consider a signal x(t), which is composed of a linear combination of complex exponentials, with different amplitudes, frequencies and phases: x(t) = [Xkе-jakt k=1 where X are complex numbers. You will write a Matlab function named SumComplexExp which takes Xk, k and the time instants t that x(t) will be computed. A sample of this kind of function is given below: New Open Save 1 2 3 4 5 EDITOR 6 7 8 9 10 FILE PUBLİSH Find Files Compare ▾ end Print SumComplexExp.m x + VIEW Go To Find Y NAVIGATE Write your function here: N Insert fx FA Comment % 83 % Indent E EDIT Breakpoints Run Run and Y Advance BREAKPOINTS Run Section Advance function [x] = SumComplexExp (t, xk, omegak) t: 1xT vector that contains the time instants over which x (t) will be computed. Xk: 1xN complex-valued vector. kth element is X_k. % omegak: 1xN vector kth element is 2 k. You can use length function of the Matlab to determine N when Xk is given. RUN Run and Time After writing your function, take t=[0:0.002:2], Xk=[-2j 1-j 1+j 2j] and omegak=[-] Using your function, compute the signal x, obviously it will be complex valued. Then, extract the real and imaginary parts of x. Plot the real and imaginary parts (versus t) separately. Also, extract the magnitude and phase of x and plot them separately. In all your plots, put the labels and titles properly. Part A We will consider a signal x(t), which is composed of a linear combination of complex exponentials, with different amplitudes, frequencies and phases: x(t) = [Xkе-jakt k=1 where X are complex numbers. You will write a Matlab function named SumComplexExp which takes Xk, k and the time instants t that x(t) will be computed. A sample of this kind of function is given below: New Open Save 1 2 3 4 5 EDITOR 6 7 8 9 10 FILE PUBLİSH Find Files Compare ▾ end Print SumComplexExp.m x + VIEW Go To Find Y NAVIGATE Write your function here: N Insert fx FA Comment % 83 % Indent E EDIT Breakpoints Run Run and Y Advance BREAKPOINTS Run Section Advance function [x] = SumComplexExp (t, xk, omegak) t: 1xT vector that contains the time instants over which x (t) will be computed. Xk: 1xN complex-valued vector. kth element is X_k. % omegak: 1xN vector kth element is 2 k. You can use length function of the Matlab to determine N when Xk is given. RUN Run and Time After writing your function, take t=[0:0.002:2], Xk=[-2j 1-j 1+j 2j] and omegak=[-] Using your function, compute the signal x, obviously it will be complex valued. Then, extract the real and imaginary parts of x. Plot the real and imaginary parts (versus t) separately. Also, extract the magnitude and phase of x and plot them separately. In all your plots, put the labels and titles properly.
Expert Answer:
Answer rating: 100% (QA)
Answer Function function x Sum ComplexExptXkomegak x zeros1lengtht Creating empty result vector for ... View the full answer
Related Book For
An Introduction to the Mathematics of Financial Derivatives
ISBN: 978-0123846822
3rd edition
Authors: Ali Hirsa, Salih N. Neftci
Posted Date:
Students also viewed these programming questions
-
Write a Matlab function to price an European call.
-
you will write a simply assembly level language program that performs few arithmetic programme
-
29) How would you prepare a 2% solution of NaOH knowing that most solid samples of NaOH(s) are typically 85% NaOH and 15% water?
-
Last year, Lena biked 330 miles. This year, she biked k miles. Using k, write an expression for the total number of miles she biked.
-
The state personnel bureau wants to know whether people resign if they are not promoted during the year. Bureau researchers take a sample of 30 people who were promoted and find that 6 of them...
-
(a) By direct differentiation of H = U + P V, obtain a relation between (H/U)p and (U/V)p (b) Confirm that (H/U)p = I + p(V/U)p by expressing (H/U)p as the ratio of two derivatives with respect to...
-
Compare the ways that art expresses cultural themes using the examples of manga, anime, and cockfighting.
-
Manitoba Exporters Inc. (MEI) sells Inuit carvings to countries throughout the world. On December 1, Year 5, MEI sold 10,000 carvings to a wholesaler in a foreign country at a total cost of 600,000...
-
Main Street Bakery offers its employees the option of contributing up to 7% of their salaries to a voluntary retirement plan, with the employer matching their contribution. The company also pays 100%...
-
AW 200 ( 41.7 wide-flange beam (see Table E-1(b). Appendix E) is simply supported with a span length of 2.5 m (see figure). The beam supports a concentrated load of 100 kN at 0.9 m from support B. At...
-
Consider the times you have seen media spokespersons during the past few years. Who come to mind? What about this person affected you and the crisis, and why?
-
What are assets-in-place? What are growth options?
-
How are gains to bidding firms related to exchange rates?
-
Discuss the evidence on the determinants of capital structure?
-
In what ways can one firm gain control over the assets of another firm?
-
In what ways are the winners and losers in cross-border mergers and acquisitions different than in domestic U.S. mergers and acquisitions?
-
Analyze perspectives on global supply chain design Evaluate the role of uncertainty in global supply chains Categorize issues and concerns in global sourcing decisions analyzing the impact of total...
-
During 2012, Cheng Book Store paid $483,000 for land and built a store in Georgetown. Prior to construction, the city of Georgetown charged Cheng $1,300 for a building permit, which Cheng paid. Cheng...
-
Consider a world with two time periods and two possible states at each time t = 0, 1, 2. There are only two assets to invest. One is risk free borrowing and lending at the risk-free rate ri, i = 0,...
-
Consider the equation Xt = cos(eWt). Write a program that computes the estimated mean and variance of Xt via simulation.
-
Consider Zt = ertXt where Xt is an exponential Wiener process: Xt = eWt (a) Calculate the expected value of the increment dZ(t). (b) Is Zt a martingale? (c) Calculate E[Zt]. How would you change the...
-
Explain the "fruit salad law," and how does it apply to the formulation of equations describing engineering systems?
-
Reflect on how the 'pair-wise' criterion system could be applied in your organisation. Against which criterion would you carry out prioritisation?
-
Why should projects be linked to the organisation's Strategic Plan?
Study smarter with the SolutionInn App