TableDemo.m contains all of the code necessary to duplicate the analysis performed in the "Generating Optimal Tables using MATLAB Products" webinar including:
Code to optimize the location of break points in a table
Code to generate contour maps of the residuals
This submission would have been nicer if it run on older versions of Matlab which is by no means hard to implement. Also the probability toolbox is also needed along with the curve fitting and the optimization toolboxes.