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.
-
Why do you think companies invest resources in training their managers and employees in business ethics? Some people think that ethics should be learned within the family and by the time a person is...
-
If A = B, what can you conclude about the components of A and B?
-
Barbara Vigil, Chief Justice, New Mexico Supreme Court Ken Badilla bought a pair of Brahma brand work boots from Wal-Mart on October 19, 2003. The boots packaging had these express descriptions: iron...
-
Mifflin Corporation manufactures a single product. The standard cost per unit of product is shown below. Direct materials1 pound plastic at $7.00 per pound .... $ 7.00 Direct labor1.5 hours at $12.00...
-
Income elasticity Ei for food is about 0.30. Last year Ali spent $12,000 on food. If he gets a 4% raise in annual pay how much will he spent on food next year?
-
Profitability remains a challenge for banks and thrifts with less than $ 2 billion of assets. The business problem facing a bank analyst relates to the factors that affect return on assets (ROA), an...
-
On January 3, 2022, Adam, Brian, Charlie and Dave decide to form Newco Corp. as a vehicle through which they intend to engage in a business. Adam transfers machinery with a FMV of $115,000 and an...
-
As the financial manager at Eco-Food, a successful food company, your responsibility is to raise $30 million for a significant expansion project. The strategy involves issuing 15-year zero-coupon...
-
Elevator Speech - Ethics Philosophy. An elevator speech is very often a kind of speech that talks about "Your" thoughts, beliefs or experience about the subject, with references to articles and...
-
Assume that John Liberman, a small business owner has the following loss distribution: Loss Probability 500,000 0.05 100,000 0.10 0 0.85 An insurance policy insures the above loss distribution with a...
-
As AI technology moves forward, we are going to have fewer people to work with, and possibly in the future, we will have AI robots like Neo to work with. What will happen if humans have conflicts...
-
Recompute the setup cost and the holding costs based on only idle time of hourly line workers only (for setup) and the opportunity cost of investing in marketing, and other expenses only (for holding...
-
A public acquiror has proposed to enter into a merger with a public target. The merger consideration of $59.40 per share will be funded 40% with cash and the balance with acquiror stock. You are a...
-
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...
-
Do you think the trend discussed in the case will help companies hire more skilled managers and employees to staff foreign operations? Explain. According to a recent report by the Chronicle of Higher...
-
Some companies agree that the move toward internationalization by U.S. universities primarily reflect an attempt to get more money because foreign buyers are willing to pay top dollar to obtain a...
-
Form teams of five. Each team will come up with a list of five positives and five negatives for the trend discussed in the case. Each team will outline a set of implications of what this trend means...
Study smarter with the SolutionInn App