MATLAB is a powerful technical computing environment that is used extensively in the research described in this course. MATLAB programs are used, for example, to conduct experiments and gather data, analyze and visualize data, and implement computational models. This tutorial is intended for students who already have computer programming background and want to learn some of the basic elements of the MATLAB language and how it can be applied to sample problems in computational neuroscience.

## Unit Activities

NOTE: There are no videos for this tutorial.

### Useful Background

- Introduction to computer programming, linear algebra
- The MATLAB technical computing environment can be purchased from MathWorks, Inc.
- The free GNU Octave Scientific Programming Language is largely compatible with MATLAB and can be used to run the MATLAB examples in this tutorial.

### MATLAB Introduction

- The tutorial document below, which was originally prepared by Mark Goldman (UC Davis) and extended by Daniel Zysman (MIT), provides an introduction to aspects of MATLAB that are used in the programming exercises provided in this tutorial.

MATLAB: Goldman / Zysman Introductory Tutorial (PDF) Code + data files for these tutorial examples (ZIP) (This ZIP file contains: 8 .m files and 1 .mat file)

Some additional resources for learning MATLAB are listed in the section on *Future Study* . You can also view a 5-minute video introduction to MATLAB by entering the following expression in the MATLAB Command window:

`playbackdemo('GettingStartedwithMATLAB', 'toolbox/matlab/demos/html')`

### MATLAB Programming Exercises

The table below provides descriptions of programming exercises, supporting code and data files, and solution code. They were prepared by Daniel Zysman and Ellen Hildreth, based on some material from the 2014 summer course originally developed by Emily Mackevicius.

EXERCISES | SOLUTIONS |
---|---|

Feedforward neural networks for digital character recognition (ZIP - 2.3MB) (This ZIP file contains: 1 .doc file and 1 .mat file) | Solutions (ZIP) (This ZIP file contains: 2 .m files) |

Spatial processing in the visual pathway (PDF) | Solutions (ZIP) (This ZIP file contains: 4 .m files) |

Integrate and fire model of neural activation (PDF) | Solutions (ZIP) (This ZIP file contains: 6 .m files) |

Spike-triggered averaging of neural responses: Handout and data (ZIP - 2.1MB) (This ZIP file contains: 1 .doc file and 1 .mat file) | Solutions (ZIP - 1.9MB) (This ZIP file contains: 2 .m files and 1 .mat file) |