This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 1 EE102 Systems and Signals Fall Quarter 2011 Jin Hyung Lee Matlab Assignment 3 Solution In this lab we will use matlab to compute the Fourier series for several signals, and compare the errors that results from the approximation of the signals by truncated Fourier series. The first signal will be the sawtooth waveform we discussed in class. This has has a discontinuity that causes Gibbs oscillations on either side of the discontinuity. The second is the triangle signal that you found the Fourier series for in Problem 1b. This has the same values as the sawtooth waveform for t = [0 , 1) . However, since it is continuous, it is much better behaved. Task 1: Write an m-file that evalutates a Fourier series Write an m-file that takes a set of Fourier series coefficients, a fundamental frequency, and a vector of output times, and computes the truncated Fourier series evaluated at these times. The declaration and help for the m-file might be function fn = myfs(Dn,omega0,t) % % fn = myfs(Dn,omega0,t)...
View Full Document
This note was uploaded on 03/30/2012 for the course ELEC ENGR 102 taught by Professor Lee during the Fall '11 term at UCLA.
- Fall '11