Introduction to Matlab Psychology

Course #101-1-0045
Mondays 12:00-14:00, Room 402, Bldg #35

This course is intended to give undergraduate students a solid foundation in using Matlab for research purposes. After learning the basics of writing code in Matlab, the course will focus on building simple experiments and performing simple analyses of behavioral and EEG data. The course is taught in a computer lab and students without previous experience are expected to spend at least 1-2 hours every week performing exercises at home. The grade will be based on 10 weekly home work assignments (20%) and a final exercise (80%).

Attendance in 80% of the classes and lab sessions is obligatory.

Passing grade is 56.
Inbar Avni is the TA for the course.
Tutorials are held on Wednesday 10-12 in room #101 (computer lab) in building #98
If you need help, please contact her at:

A good way to learn the basics is by following this guide written by Prof. Antonia Hamilton from UCL – PDF

Lesson 1: Basics, vectors, matrices, punctuation, and indexing – Class files, Homework

Lesson 2: Basic math, logical operators, basic functions, and basic graphs – Class files, Homework

Lesson 3: Basic scripting and flow control – Class files, Homework

Lesson 4: Functions and structures – Class files, Homework

Lesson 5: Figures – Class files, Homework

Lesson 6: Review - Class task

Lesson 7: Handling files, importing, and exporting – Class files

Lesson 8: Manipulating Images – Class files, Homework

Lesson 9: Building a visual experiment – Class filesHomework

Lesson 10: Analyzing behavioral data from visual experiment – Class filesHomework

Lesson 11: Basic EEG analysis – Class filesHomework

Lesson 12: Visual categories EEG experiment – Class filesHomework

Final Project - due on TBA