MATLAB appendix