A periodic signal $v_1(t)$ is given graphically below. The time axis is in seconds.
$v_1(t)$
2
-1 0 1 2 3 4 5 6 7
1. Determine the fundamental period $T_0$ and the fundamental frequency $\omega_0$ in rad/s.
2. Determine the exponential Fourier series coefficients for $v_1(t)$.
3. From your results obtained in question 2., determine the trigonometric Fourier series coefficients $a_n$ and
Script
1 n=1:10;
2 $T_0$ = [6]; % The fundamental period in seconds
3 $\omega_0$ = [$\pi$/3]; % The fundamental frequency in rad/s
4 $c_0$ = [2/3]; % The exponential Fourier series coefficient for n = 0
5 $c_n$ = [(-exp(-j.*n.*($\pi$/3))-exp(-j.*n.*($\pi$/3)))/$\pi$.*j.*n]; % The exponential Fourier series
6 $a_0$ = [4/3]; % the trigonometric Fourier series coefficient $a_0$
7 $a_n$ = []; % the trigonometric Fourier series coefficients $a_n$, n=1,2,3.....
8 $b_n$ = []; % the trigonometric Fourier series coefficients $b_n$, n=1,2,3.....