Cartoon of CCD exposure and shift-register readout 

This animation creates a cartoon of the exposure of a 1D CCD array resulting in a random set of Gaussian peaks, followed by reading out of the pixel data via a shift register. Each run of the matlab code produces a new set of peaks, as their positions and intensities are generated with the matlab random-number generator “rand”. Note that in addition to the main matlab code, there is a small function “pauseMov.m” used to, er, pause the movie for a certain number of frames. I use this function in several of the matlab codes available here.