The publish command is great because it lets me compile the output of a Matlab script into an HTML (or .doc, .ppt, .pdf, etc.) file that is nicely formatted. This way I don’t need to run the script again to get a quick reminder of what it did! I also use it to show results to my adviser. Learn more about it here.