Here you can download my Matlab code
Simple manipulations with an image you can find here.
1D Fourier Transform with filtering in Frequency Domain example.
You should first draw a picture (try to start and finish in the origin) and then just press space few times.
The solutions for second week exercise you can download here.
The solutions for the additional exercise for the week 50 you can download here.