1. Math
  2. Advanced Math
  3. mathematician joseph fourier is credited with the theorem that any...

Question: mathematician joseph fourier is credited with the theorem that any...

Question details

Mathematician Joseph Fourier is credited with the theorem that any periodic waveform may be expressed as a summation of pure sines and cosines. For example, the square wave of Figure P2.16a can be written as a sum of sines: 4.2m 4.6m 4.10 sın 兀 k oddFigure P2.16b shows the first three terms of the series and their summation. a) Write a MATLAB script that utilizes the self-written function sqwave (n,T,i) which takes the following arguments: n the number of terms of the Fourier series. T the period of the square wave in secon i the number samples per period. ds. 1 The function should return two arrays, t and V, each containing i elements, where t = an array of i time points. V = an array of i computed values of the nth-degree approximated square wave b) Run your sqwave (n, T,i) function and plot the results for the following arguments: T-I millisec, 1-100 I, n= 1, 3. 10. 100c) For n 100, print out a table of (t, V) at every 20 time points in a text file. -1 T-1 ms Vy Ist term Sum of 1st, 2nd and 3rd terms 2nd term 3rd term -1 Figure P2.16. (a) Square wave. (b) Three term in a Fourier series of a square wave

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution