13.01.2015 Views

Chapter 4: Programming with MATLAB - FET

Chapter 4: Programming with MATLAB - FET

Chapter 4: Programming with MATLAB - FET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Fourier Series<br />

x(t) = a 0 + Σ n=1 ( a n cos nω 0 t + b n sin nω 0 t )<br />

Evaluate the following function:<br />

x(t) = 0.5 + 2/π ( cost – 1/3 cos 3t + 1/5 cos5t –<br />

1/7 cos7t + … ) for -10 < t < 10.<br />

By using different colors plot the following:<br />

1- The first two terms.<br />

2- On the same figure plot the first three terms.<br />

3- On the same figure plot the first four terms.<br />

4- On the same figure plot the first five terms.<br />

5- By using the general form of the function, and by using the for<br />

or while or … loop. Set n as input variable, On the same figure<br />

plot the first one-hundred terms.<br />

4-35<br />

Z.R.K

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!