MATLAB: Fourier

fourierfourier serieshomeworkno attempt

Hello,
I want to display certain functions as a fourier series (I want to perform 5 partial fourier series, or more). I want the output to be displayed as a plotted function, and also the frequency spectrum.
F.e.:
F(t)= x^3 for x=]0,3[ and (1/2)*x for x=]3,6[ with period of 2.
I've searched in the file exchange section, but didn't find anything satisfactory. Perhaps I used the wrong search items, or perhaps someone of you is having something like this?
Greetings from Germany, Manfred

Best Answer

Check out this resource from Steve Eddins: http://blogs.mathworks.com/steve/category/fourier-transforms/