O'Reilly logo

MATLAB for Neuroscientists, 2nd Edition by Nicholas G. Hatsopoulos, Adam Seth Dickey, Tanya I. Baker, Marc D. Benayoun, Michael E. Lusignan, Pascal Wallisch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4

Programming Tutorial

Principles and Best Practices

Pascal Wallisch

Abstract

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.

Keywords

code organization; code maintenance; variables; global functions; mnemonics; scope; parameters; commenting code; objects

4.1 Goals of this Chapter

Unlike most other sections in MATLAB® for Neuroscientists, the focus here is not on learning new techniques ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required