You will design the algorithm for the continuous-time Fourier series. In particular, you have to compute the Fourier coe
Posted: Mon May 09, 2022 7:31 am
please show the MATLAB CODE. you should get the figure
of Magnitude and Phase plot of Fourier Coefficients when N=10,
N=100 and Approximated signal when N=10, 100
You will design the algorithm for the continuous-time Fourier series. In particular, you have to compute the Fourier coefficient, obtain the frequency spectrum plot, and construct the approximated signal via the Fourier series. • Since it is not possible to implement the infinite summation, you have to consider the finite summation from k=-N to k=N, where N is the integer. Specifically, the Fourier series with N can be written as N x(t) ~ Czejkwot (1) k=-N This is the approximated signal via the Fourier series. You can use MATLAB "integral” to impelment (1). Specifically, you can use “integral” to compute the Fourier coefficient C k
(Original periodic signal 1) - Sawtooth wave 1 0.8 0.6 0.4 T = 50*(1/50); dx = 0.0001; fs = 1/dx; t = 0:1/fs:T-1/fs; [aaa bbb] = size(t); Periodic = 10; X = sawtooth(2*pi* Periodic *t); 0.2 0 -0.2 -0.4 -0.6 figure plot(t,x, 'linewidth',3) grid on axis([0 1 -1 1]); -0.8 -1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
of Magnitude and Phase plot of Fourier Coefficients when N=10,
N=100 and Approximated signal when N=10, 100
You will design the algorithm for the continuous-time Fourier series. In particular, you have to compute the Fourier coefficient, obtain the frequency spectrum plot, and construct the approximated signal via the Fourier series. • Since it is not possible to implement the infinite summation, you have to consider the finite summation from k=-N to k=N, where N is the integer. Specifically, the Fourier series with N can be written as N x(t) ~ Czejkwot (1) k=-N This is the approximated signal via the Fourier series. You can use MATLAB "integral” to impelment (1). Specifically, you can use “integral” to compute the Fourier coefficient C k
(Original periodic signal 1) - Sawtooth wave 1 0.8 0.6 0.4 T = 50*(1/50); dx = 0.0001; fs = 1/dx; t = 0:1/fs:T-1/fs; [aaa bbb] = size(t); Periodic = 10; X = sawtooth(2*pi* Periodic *t); 0.2 0 -0.2 -0.4 -0.6 figure plot(t,x, 'linewidth',3) grid on axis([0 1 -1 1]); -0.8 -1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1