building matlab appendix