add MATLAB diary for chapter 10