Matlab: Plotting Fourier-Series

I'm doing some fourier transforms and I'm wondering how to plot this in Matlab to look at the graphs. I don't know how to plot the function, nor the series.

; , for all x.

which has the fourier series (if calculated correctly):

I'd like to do a comparison of the Fourier-series and the original function by looking at the graphs. Also, how do you find the Fourier-series and their coefficients, from a function like the one I posted? It'd be great to use Matlab for that.

Any help would be appreciated :)