MATLAB: How can plot this Periodic Signal with E Amplitude using Matalb and calculate FFT for it. plot Best Answer You’re not calculating the fft but the analytic Fourier transform. To do this, use the definition of the Fourier transform of x(t):X(w) = int(x(t) * exp(j*w*t), t, T1, T2)defining w=2*pi*f.Specifically, with the Symbolic Math Toolbox:syms E T t wS1 = int(4*E/T*t * exp(j*w*t), t, 0, T/4);S2 = int(E * exp(j*w*t), t, T/4, T/2);S3 = int(-E * exp(j*w*t), t, T/2, 3*T/4);S4 = int(4*E/T*(t-T) * exp(j*w*t), t, 3*T/4, T);X(w) = S1 + S2 + S3 + S4;X(w) = simplify(collect(X(w))) % Exponential ExpressionX(w) = simplify(collect(rewrite(X(w), 'sincos'))) % Trigonometric ExpressionX(w) =-(4*E - 4*E*exp(T*w*1i) - 4*E*exp((T*w*1i)/4) + 4*E*exp((T*w*3i)/4) + E*T*w*exp((T*w*1i)/2)*2i - E*T*w*exp((T*w*3i)/2)*1i + E*T*w*exp((T*w*3i)/4)*1i)/(T*w^2)X(w) =((E*T*cos((3*T*w)/2)*1i + 2*E*T*sin((T*w)/2) - E*T*sin((3*T*w)/2) + E*T*sin((3*T*w)/4) - E*T*cos((3*T*w)/4)*1i - E*T*cos((T*w)/2)*2i)*w + 4*E*cos(T*w) - 4*E + 4*E*cos((T*w)/4) - 4*E*cos((3*T*w)/4) + E*sin(T*w)*4i + E*sin((T*w)/4)*4i - E*sin((3*T*w)/4)*4i)/(T*w^2) Related SolutionsMATLAB: Frequency mixing Let X(\omega) = G(\omega-\omega_0)ThenX(\omega_0) = G(0)if \omega_0 is positive, then X(\omega) is shifted to the right of G(\omega) MATLAB: How to plot signal for equation given below Try thist = linspace(0, 10, 100);w = 1;a = 1;y1 = sin(w*t)./t;y2 = sin(a*t).*sinh(a*t)./(2*a^2);y3 = (exp(-t)+exp(-3*t)).*heaviside(t);subplot(3,1,1)plot(t, y1)subplot(3,1,2)plot(t, y2)subplot(3,1,3)plot(t, y3) Related QuestionHow to export a fourier series in its function form after using the curve-fitting methodHow to express this function
Best Answer