1)Script:
T=7;
w0=2*pi/T;
t=linspace(0,T,1000);
xt=(((t/2)+1).*(heaviside(t)-heaviside(t-3)))+((3-(t/2)).*(heaviside(t-3)-heaviside(t-5)))+(2.*(heaviside(t-5)-heaviside(t-7)));
tt=linspace(0,2*T,2*length(t));
x=[xt xt];
figure;subplot(311)
plot(tt,x);grid;xlabel('t');ylabel('x(t)')
title('Original function x(t)')
%complex exponential Fouier series
i=1;
for K=[7 15]
i=i+1;
m=0;
for k=-K:1:K
m=m+1;
C(m)=(1/T)*trapz(t,xt.*exp(-j*k*w0*t));
end
k=-K:1:K;
%plot x(t) using fs
m=0;
for tt=linspace(0,2*T,2*length(t));
m=m+1;
xNt(m)=sum(C.*(exp(j*k*w0*tt)));
end
tt=linspace(0,2*T,2*length(t));
subplot(3,1,i)
plot(tt,xNt,'r');grid;
xlabel('t');
ylabel('x(t)')
title(sprintf('Approximated x(t) using %d tersm',K))
end
2)Script:
clc;close all;clear all;
T=7;w0=2*pi/T;
t=linspace(0,T,1000);
xt=(((t/2)+1).*(heaviside(t)-heaviside(t-3)))+((3-(t/2)).*(heaviside(t-3)-heaviside(t-5)))+(2.*(heaviside(t-5)-heaviside(t-7)));
t1=linspace(0,2*T,2*length(t));
x=[xt xt];
figure;
subplot(311);plot(t1,x,'b')
xlabel('t');grid;
ylabel('x(t)')
title('Original signal x(t)')
%Trigonometric Fourier series coefficients
i=1;
for K=[11 17];
i=i+1;
a0=(1/T).*trapz(t,xt);
k=0;
for n=1:1:K
k=k+1;
an(k)=(trapz(t,xt.*cos(n*w0*t)));
end
an=2*an/T;
k=0;
for n=1:1:K
k=k+1;
bn(k)=(trapz(t,xt.*sin(n*w0*t)));
end
bn=2*bn/T;
n=1:1:K;
%Reconstruction of original signal
k=0;
for t1=linspace(0,2*T,2*length(t))
k=k+1;
Xr(k)=a0+sum((an.*(cos(n.*w0*t1)))+(bn.*(sin(n*w0*t1))));
end
subplot(3,1,i)
t1=linspace(0,2*T,2*length(t));
plot(t1,Xr,'r')
xlabel('t');grid;
ylabel('x(t)')
title(sprintf('Approximated x(t) using %d terms',K))
end
3. One period of a signal is given by the following equation: +1 1 0<t <3...
1. We have a signal, x (t), with period of T - 2 second with the signal in one period given below: x(t)- ^x,(t+nT) wherex,) 1-2 (t - ) Kt<1 n=-oo 0 1/2 (a) Find the Fourier series coefficients for this signal. That is, find the values of ak so that x (t) Hint: te-jwt teJwt dt (b) Write some MATLAB code which will plot the signal resulting from a truncated Fourier Series using the coefficients you calculated in part...
Name: ID NO: Section: 1. Assume that you have three sinusoidal signals and the parameters of each one of them is given below Amplitude is 3. cyclic frequency is 50Hz and phase shift is - Amplitude is 4, radian frequency is 40 and phase shift is Amplitude is 6, period is 0.05s, and phase shiftis- Write MATLAB code for the following Assume that the time interval is. Generate each signal Plot the above three signals in the same figure window...
Let x(t) a periodic signal with period To such that x(t)-sin(coot) for。st for To/2 s t s To. To2 and x(t)-0 a) Plot x(t) b) Expand x(t) in trigonometric Fourier series (sine/cosine). c) Calculate the average power of x().
Problem (3) a) A periodic square wave signal x(t) is shown below, it is required to answer the below questions: x(t) 1. What is the period and the duration of such a signal? 2. Determine the fundamental frequency. 3. Calculate the Trigonometric Fourier Series and sketch the amplitude spectrum and phase spectrum of the signal x(t) for the first 5 harmonics. b) Find the Continuous Time Fourier Series (CTFS) and Continuous Time Fourier Transform (CTFT) of the following periodic signals...
Problem 1 (20 pts) Suppose that x(t) = e 2 for 0 st <3 and is periodic with period 3. a) Determine the fundamental frequency of this signal. (2 pts) b) Determine the Fourier series representation for this signal. (7 pts) c) Suppose that this signal is the input to an LTI system with impulse response h(t) = 5sinc(0.5t). Determine the Fourier series representation for the output signal y(t). Be sure to specify the fundamental period and all Fourier series...
A periodic signal x(t) is shown below. We want to find the Fourier Series representation for this signal. x(t) AA -4 -2 1 2 4 6 8 (a) Find the period (T.) and radian frequency (wo) of (t). (b) Find the Trigonometric Series representation of X(t). These include: (a) Fourier coefficients ao, an, and bn ; (b) complete mathematical Fourier series expression for X(t); and (c) first five terms of the series.
Problem 2 125 Marks Given the following periodic signal: 5-3-2 e) a- Find the trigonometric Fourier series, sketch the amplitude, and phase spectra. [15 Marks] Student b- Does the signal has a de component? Exp Explain. [5 Marks] If you are given the signal x(t) = tu (t). Can we write the Fourier series of the signal in the period 0 t < 1? Explain. [5 Marks] c-
Given the periodic signal ?(?)=H0,−1<?<0 2−2?,0<?<1 with a signal period of 2 sec. Obtain the Fourier series coefficients using the Fourier sine and Fourier cosine series expansions.
Let a periodic signal x(t) with a fundamental frequency ??e2? have a period 4.6 (a) Plot x(t), and indicate its fundamental period To (b) Compute the Fourier series coefficients of x(t) using their integral (c) (d) Answers: x(t) is periodic of fundamental period definition. Use the Laplace transform to compute the Fourier series coefficients Xk. Indicate how to compute the dc term. Suppose that y(t) = dx(t)/dt, find the Fourier transform of x(t) by means of the Fourier series coefficients...
(a) Given the following periodic signal a(t) a(t) -0.5 -0.25 0 0.25 0.5 0.75 1 1.25 1.5 i. [2%) Determine the fundamental period T ii. [5%] Derive the Fourier series coefficients of x(t). iii. [396] Calculate the total average power of z(t). iv. [5%] If z(t) is passed through a low-pass filter and the power loss of the output signal should be optimized to be less than 5%, what should be the requirement of cutoff frequency of the low-pass filter?...