a)
function [w,X]=CTFT(t,x)
w=-50:.1:50; %create the w axis
for i=1:length(w)
X(i)=0;
for j=1:length(t)-1
X(i)=X(i)+x(j)*exp(-1i*w(i)*t(j))*(t(j+1)-t(j));
end
end
==========================================================
b)
function x=ICTFT(t,w,X)
for i=1:length(t)
x(i)=0;
for j=1:length(w)-1
x(i)=x(i)+X(j)*exp(1i*w(j)*t(i))*(w(j+1)-w(j));
end
end
x=x/(2*pi);
==========================================================
c) Run the following code in the MATLAB command window after saving the above two functions
t=-50:0.1:50;
x=sin(t);
[w,X]=CTFT(t,x);
figure;
subplot(3,1,1);plot(w,abs(X),'k');xlabel('\omega');ylabel('Magnitude');title('Magnitude
of CTFT');
x1=ICTFT(t,w,X);
subplot(3,1,2);plot(t,x,'k');xlabel('time');ylabel('value');title('Time
Domain Signal');
subplot(3,1,3);plot(t,x1,'k');xlabel('time');ylabel('value');title('Time
Domain Signal after using ICTFT');
The mismatch is because after applying ICTFT the signal x1 is not same as x as we cannot perform continuous integration. So, it will be a complex number.
Hello, I'm taking signal systems course. please solve this question in matlab as soon as possbile please. Question 1 a) Write a function that calculates the Continuous Time Fourier Transform o...
1. Use the definition of the Continuous Time Fourier Transform (CTFT) X(f) of a signal x(t) in order to obtain the CTFT of x(t) = (2/ T)tri(2t / T) . Do not assign a numerical value to the real number T*0. Define the signal x.()-limx). What is the signal x,(C) and what is its Fourier Transform X(f)? Hint: Take the limit as T → of x(f)
Q. 2 A continuous time signal x(t) has the Continuous Time Fourier Transform shown in Fig 2. Xc() -80007 0 80001 2 (rad/s) Fig 2 According to the sampling theorem, find the maximum allowable sampling period T for this signal. Also plot the Fourier Transforms of the sampled signal X:(j) and X(elo). Label the resulting signals appropriately (both in frequency and amplitude axis). Assuming that the sampling period is increased 1.2 times, what is the new sampling frequency 2? What...
Use MATLAB please! Write a function myDFT that performs the discrete Fourier transform for a signal y(t) sampled at regular time intervals. The function shall take as input the vector of instances in time measurements were taken t and the vector of measured values y. As output the function shall provide the variable a0 representing ao and the vectors a and b containing ak and bk from the discrete Fourier transform (a does not include ao whi is returned in...
This is taken from Section 4.6, "Amplitude Modulation and the Continuous-Time Fourier Transform," in the course text Computer Explorations in signals and systems by Buck, Daniel, Singer, 2nd Edition. I need the answers for the basic and intermediate questions. 4.6 Amplitude Modulation and the Continuous-Time Fouriei Transform This exercise will explore amplitude modulation of Morse code messages. A simple ampli tude modulation system can be described by x(t) = m(t) cos(Crfot), (4.13) where m(t) is called the message waveform and...
Problem 5. (Properties of Fourier transform) Consider a continuous time signal x(1) with the following Fourier transform: X(jw) = J 1 - if we l-207, 207] if|wl > 207 (3) Let y(t) = x(26) cos? (507). Sketch Y (w), i.e., the Fourier transform of y(t). (Note that 2 1 + cos(20) cos? (0) = 2
# 1 : Imagine that you have a continuous-time signal x(t) whose continuous-time Fourier transform is as given below -25 -20 f, Hz -10 10 20 25 (a) (10 pts) Imagine that this signal is sampled at the sampling rate of F, 65 Hz. Sketch the FT of the resulting signal that would be at the output of an ideal DAC (like we discussed in class) when given these samples. (b) (10 pts) Repeat part (a) for the case that...
Problem 2 Consider a continuous-time signal x(t), of which the Fourier transform is ( 21f # (1)= 1° X(t)e=1218i dt = le 1000 15 1 400 lo otherwise Discrete-time signal x[n] is obtained by sampling x(t) at sampling at every 1 us -i.e., x[n] = xy(10ºn). (a) Write discrete-time Fourier transform of x[n], X (elo). (b) Plot the magnitude and phase response of X (ejm).
-l 2. Consider the continuous-time signal: 0 x(t)- 1sts1 0, otherwise Find the Fourier transform X(a) of x(t). Simplify ths expression as much as po e simplest expression does not involve any complex numbers.) Draw a rough plot of o) as a function of w. Identify the peak value of X(w). Identify the location of the X( first null on either side of the vertical axis.
Please finish these questions. Thank you Given find the Fourier transform of the following: (a) e dt 2T(2 1) 4 cos (2t) (Using properties of Fourier Transform to find) a) Suppose a signal m(t) is given by m()-1+sin(2 fm) where fm-10 Hz. Sketch the signal m(t) in time domain b) Find the Fourier transform M(jo) of m(t) and sketch the magnitude of M(jo) c) If m(t) is amplitude modulated with a carrier signal by x(t)-m(t)cos(27r f,1) (where fe-1000 Hz), sketch...
please solve, previous ones all wrong! Question 11 1 mark) Attempt 2 What is the Inverse Fourier transform of F(u)- 10-5? Reflection: F-1[F(-u)]=f(-t) Your answer should be expressed as a function of t using the correct syntax. Inverse F.T. is f(t) Question 12 (T mark) Attempt 2 What is the Inverse Fourier transform of: 7 16+iw-4)2 Reflection: F--) Your answer should be expressed as a function of t using the correct syntax. Inverse F.T. is f(t) Question 13 (2 marks)...