Programming Tutorial: Principles and Best Practices

Unlike many other sections in MATLAB® for Neuroscientists, the focus here is not on learning techniques in MATLAB, but on how to use those techniques better. The sections that follow introduce guidelines for code organization in small and large projects, defect (bug) control, and testing strategies in an attempt to communicate strategies for managing the complexity that comes with larger programming efforts.