4. Find the least square trigonometric approximating functions of orders 8 and 6 for the following data points: 1 1 t0 4
Posted: Wed Jul 06, 2022 12:05 pm
4. Find the least square trigonometric approximating functions of orders 8 and 6 for the following data points: 1 1 t0 4 y 3 2 1 3 5 3 7 4 8 2 8 0 -1 0 1 2 By definition, P8 € span{1, cos(2πt), sin(2πt), cos(4πt), sin(4πt), cos(6πt), sin(6πt), cos(8πt)}. and P6 € span{1, cos(2πt), sin (2πt), cos(4πt), sin(4πt), cos(6πt)}. Keep 3 significant digits after the decimal points for your final result. You may use the fact that the DFT of x = [3, 2, 1, 0,-1,0, 1, 2] is 2.8284 2.4142 0 0.4142 0 0.4142 0 2.4142 which is obtained by fft([3,2,1,0,-1,0,1,2])./sqrt (8) if using Matlab. [5 marks]