1small matlab script in the appendix