Problem 1 Matlab Many engineering and science applications involve analysis of p
ID: 644825 • Letter: P
Question
Problem 1 Matlab Many engineering and science applications involve analysis of periodic signals, for example, vibration signals and music signals. where Fourier Series is a commonly-used technique. Mathematically, a periodic function y) with period T can be expressed as cos no t B. sinnont where the fundamental frequency oo 2n/T, n is the integer index of the frequency components, and A. and B. are the magnitudes of Violin the frequency components. Essentially, the Fourier Series expresses a periodic function as a summation of s at multiples of the fundamental frequencies. Of interest is a rectangular wave (voltage signal) shown with T 10 seconds, and L -2 volts. The time history (measurements) of the signal can be downloaded from Blackboard with the first and second columns being the Time and Voltage Value, respectively. T2 Write a Matlab script to approximate the original wave using a finite number of terms: (a) Perform curve fitting (regression) using the following expression y(u Ao A cos coot B1 sin. coot and determine the constants Ao,Al,and Bi. (b) Perform curve fitting (regression) using the following expression cos2oot B. sin 2eoot As cos 3eot Bu sin 3ont and determine the constants Ao, AI, BI, A2, B., A3 and B3 (c) Plot and compare the original signal (from the data file) and the curve-fit signals in (a) and (b) on the same plot.Explanation / Answer
Interactive Curve Fitting
To interactively fit a curve, follow the steps in this simple example:
Load some data at the MATLAB
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.