MATLAB is a powerful data analysis program, but many behavioral science researchers find it too daunting to learn and use. An Introduction to MATLAB for Behavioral Researchers is an easy—to—understand, hands—on guide for behavioral researchers who have no prior programming experience. Written in a conversational and non—intimidating style, the author walks students—step by step—through analyzing real experimental data. Topics covered include the basics of programming, the implementation of simple behavioral analyses, and how to make publication—ready figures. More advanced topics such as pseudo—randomization of trial sequences to meet specified criteria and working with psycholinguistic data are also covered. Interesting behavioral science examples and datasets from published studies, such as visualizing fixation patterns in eye—tracking studies and animal search behavior in two—dimensional space, help develop an intuition for data analysis, which is essential and can only be developed when working with real research problems and real data.

Debug and Optimize

Now that you are beginning to be fairly competent in MATLAB, we should talk about what to do when you're making your own code and things aren't going as planned. Errors can be frustrating to all of us, especially those without much previous experience in programming.

6.1 General Practices

In general, save often but also save backups of previous versions of your ...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles