Updated Matlab programs