Question
MATLAB (Due Wednesday, October 17, 2018) Compact Trigonometric Fourier Series Waveform Builder The goal of this exercise is to create a MATLAB app (via the
MATLAB (Due Wednesday, October 17, 2018) Compact Trigonometric Fourier Series Waveform Builder The goal of this exercise is to create a MATLAB app (via the GUIDE tool) that will rebuild a waveform using its compact trigonometric Fourier series coefficients. The script will reconstruct the waveform cosine-by-cosine, with pauses in between to allow the viewer to visualize the waveform reconstruction.
The layout of the figure window should employ a 2 x 2 subplot arrangement as follows:
Upper left axes: each cosine (i.e., C0, C1cos(omega 0t+theta1), C2cos(omega0t+theta2), etc.) versus time
Lower left axes: the reconstructed curve built from all cosines calculated to that point in time
Upper right axes: Cn versus n
Lower right axes: Theta n versus n
Add appropriate labels and titles to your axes (e.g., identify the number of harmonics used, omega 0, etc.).
The user should be able to choose (a) a data file that defines the time/value pairs for the waveform or (b) an ideal waveform from a group of at least four candidate waveforms (parabola, square, sawtooth, and exponential). If the waveform is defined in a file, the app should calculate the necessary Fourier coefficients using numerical integration prior to creating a graphical output. For an ideal waveform, the trigonometric Fourier series coefficients, the fundamental frequency, and the time range will be already known and hard-coded into the script.
Demonstrate that your script works properly by rebuilding two waveforms for each case (i.e., two time/value data sets and two ideal waveforms). Print copies of your MATLAB script and the figure windows that show the reconstructed waveforms. Then, upload your script(s) to the fileshare assignment at K-State Online.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started