Your homework for Sept 4 is to connect the central limit theorem plotting program we wrote a few lessons ago to a simple GUI. It should have the following features: - You should be able to select how many dice there are with a "popupmenu" UI control (or radio buttons, if you wish). There should be options for 1 to 6 dice. - You should be able to select how many sides there are on the dice: 6, 8, 12, or 20 - You should be able to type in a number of dice rolls to use in an editable text box - The program should plot just one histogram of dice rolls (using the above three settings). The plotting may be triggered automatically, or only when you click a plot button -- your choice. - The program should save the plot to disk when you click a button. Something like this may help: set(gcf,'PaperPositionMode','auto'); set(gcf,'InvertHardcopy','off'); print(fig, 'thefigure.png', '-dpng'); print(fig, 'thefigure.eps', '-deps'); For those curious in how to load or save a data file, these functions are typically useful: [filename, pathname] = uigetfile('*.mat', 'Select a File to Load', 'c:\pathhere'); [filename, pathname] = uiputfile('*.mat', 'Save As', 'c:\pathhere'); If the above is too easy, try adding features to the above program; perhaps plotting a gaussian function (with the same mean and variance as the dice roll data set) overlaid on the histogram. Or maybe you want to try plotting two quantities on two different axes, and displaying their statistics below? You should be able to have a little fun writing simple GUIs now; if that interests you then I suggest looking into MATLAB's guide() function for more possibilities of "GUI widgets" that you can add to your interface. Good luck everyone!