A close friend of mine is just learning MATLAB. She needs to process a bunch of text files, and was able to write some code that will accomplish that. She came to me looking to bring her code to the next level to improve maintainability, readability and flexibility. There are quite a few tweaks here that bring her code to the next level. Most of these are very common, so you can get some ideas to apply to your code also.