Question: 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:

Part A We will consider a signal x(t), which is composed of 

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 PUBLSH 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.

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Function function x Sum ComplexExptXkomegak x zeros1lengtht Creating empty result vector for ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

635e3f5173aa6_183179.pdf

180 KBs PDF File

Word file Icon

635e3f5173aa6_183179.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!