Plotting fourier series approximation of F(t)
I'm new to matlab and have a question for a class i'm taking. I've worked out everything except for the last part - which i'm absolutely stuck on...
F(t) is the function;
f(t) = t-1 for 1<t<2
= t for 0 <t<1
I had to determine a fourier representation of this analytically which is all done, but now I have absolutely no idea how to do a fourier series approximation in Matlab. I've checked countless sites and books but they typcailly go into heaps of detail and I get lost after a few lines of code...
Any help would be appreciated.