MATLAB .m files used in Chapter 3