Measles in Matlab [book chapter]