Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Answer Function function x Sum ComplexExptXkomegak x zeros1lengtht Creating empty result vector for ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Document Format ( 2 attachments)
635e3f5173aa6_183179.pdf
180 KBs PDF File
635e3f5173aa6_183179.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started