Question: Fitting a Function with Trigonometric Functions My Solutions > Two periods of data for y as a function of time, t, data is provided in

 Fitting a Function with Trigonometric Functions My Solutions > Two periods

Fitting a Function with Trigonometric Functions My Solutions > Two periods of data for y as a function of time, t, data is provided in the DataSet1 file. This is loaded into Matlab. Please find and assign the following values to the appropriate variable names: n: Number of samples Fs : Sampling frquency dt: Sample interval, time between samples T: Period Wo: Fundamental Frequency A3: The amplitude of the 3rd sine term in the Fourier series B3 : The amplitude of the 3rd cosine term in the Fourier series Script Save C Reset e Reset MATLAB Documentation 1 load DataSeti 2 t = Data(:,1); 3 y = Data(:,2); 4 plot(t,y,'o') 6 7 % n: Number of samples 8 n = 9 10 % T: Period 11 T = 12 13 % dt : Sample interval, time between samples 14 dt = 15 16 % W_0 : Fundamental Frequency 17 W_O = 20 18 19 % Fs : Sampling frequency 20 FS = 21 22 % A3 : The amplitude of the 3rd sine term in the Fourier series 23 A3 = 24 25 % B3 : The amplitude of the 3rd cosine term in the Fourier series 26 B3 = 27 Run Script ? Fitting a Function with Trigonometric Functions My Solutions > Two periods of data for y as a function of time, t, data is provided in the DataSet1 file. This is loaded into Matlab. Please find and assign the following values to the appropriate variable names: n: Number of samples Fs : Sampling frquency dt: Sample interval, time between samples T: Period Wo: Fundamental Frequency A3: The amplitude of the 3rd sine term in the Fourier series B3 : The amplitude of the 3rd cosine term in the Fourier series Script Save C Reset e Reset MATLAB Documentation 1 load DataSeti 2 t = Data(:,1); 3 y = Data(:,2); 4 plot(t,y,'o') 6 7 % n: Number of samples 8 n = 9 10 % T: Period 11 T = 12 13 % dt : Sample interval, time between samples 14 dt = 15 16 % W_0 : Fundamental Frequency 17 W_O = 20 18 19 % Fs : Sampling frequency 20 FS = 21 22 % A3 : The amplitude of the 3rd sine term in the Fourier series 23 A3 = 24 25 % B3 : The amplitude of the 3rd cosine term in the Fourier series 26 B3 = 27 Run Script

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!