# ASSIGNMENT 3 ## ME 649A Q.1 Write a code to fit a cubic polynomial using least square method, plot residuals and comment on result for the given data: > [name=asaurabh] they don't have to do it in matlab. also you should ask about residuals and comment on whether the fit is acceptable | **X** | **2** |**3** | **5** | **8** | **9** | **12** | **17** | | --- | --- | --- | --- | --- | --- | --- | --- | | **Y** | **5** | **7** | **9** | **14** | **17** | **19** | **25** | Q.2 Generate a sinusoidal signal with amplitude of $0.9$ and frequency of 100Hz for $2sec$ embedded with the Gaussian noise of zero mean and $5$ as standard deviation.Using fft, determine the power spectrum and also minimum and maximum frequency involved. Take a sampling frequency of $5$kHz, $7$kHz and $9$kHz.Comment on result. > [name=asaurabh] signal frequency? put that together with amplitude. also you can tell them to have different sampling frequencies. What type of Gaussian noise? the minimum maximum is not clear?