Matlab programs from Markus