EXPERMNTS IN MATLAB
PSYCH 205B, Course Code: 68825
Winter Quarter 2015


Home


Week 1: IO & data structures

Background reading

·         http://www.mathworks.com/help/matlab/matlab_prog/scripts-and-functions.html

·         http://www.mathworks.com/help/matlab/function-basics.html (This is an entire hierarchy of pages.)

Class Topics

  1. Functions
  2. Functions using format strings: fprintf, sprintf, fscanf
  3. Reading and summarizing text data files

Assignment for week 1

Week 2: Auditory basics

Background reading

·         http://www.mathworks.com/help/matlab/import_export/characteristics-of-audio-files.html

·         http://www.mathworks.com/help/matlab/ref/audioplayer.html

Class Topics

It will be useful if you can bring headphones or earbuds to class today.

Click here for Week 2 class files

  1. How Matlab represents sounds
  2. The decibel scale
  3. Pure tones

Assignment for week 2

Week 3: Processing sounds

Background reading

Class Topics

It will be useful if you can bring headphones or earbuds to class today.

Click here for Week 3 class files

·         Gaussian

·         White

·         Colored

Assignment for week 3

Week 4: Psychometric functions

Background reading

·         http://www.mathworks.com/help/stats/normcdf.html

·         http://www.mathworks.com/help/stats/norminv.html

Class Topics

Click here for Week 4 class files

  1. Types of psychometric functions

·         Weibull

·         Log normal

·         Gaussian

·         Logistic

Assignment for week 4

Week 5: Bayesian Model-fitting

Background reading

·         Tutorial on maximum likelihood estimation by Jae Myung

Class Topics

Click here for Week 5 class files

1.       Likelihood functions

2.       Markov Chain Monte Carlo (MCMC) simulation

3.       Writing a program to fit a Weibull function to psychometric data

Assignment for week 5

Week 6: Digital image basics

Background reading

·         Please read the Wiki page http://en.wikipedia.org/wiki/Raster_scan up to the section on History.

·         Open http://www.mathworks.com/help/matlab/matlab_prog/fundamental-matlab-classes.html and read the Overview and table. Then also read the material in the links in the table on Integers and Floating-Point Numbers.

·         http://www.mathworks.com/help/matlab/ref/image.html?searchHighlight=image

·         http://www.mathworks.com/help/matlab/ref/imread.html?searchHighlight=imread

·         http://www.mathworks.com/help/matlab/ref/imwrite.html?searchHighlight=imwrite

·         http://www.mathworks.com/help/matlab/ref/colormap.html?searchHighlight=colormap

·         http://www.mathworks.com/help/matlab/ref/meshgrid.html?searchHighlight=meshgrid

Class Topics

Click here for Week 6 Class Files

  1. Image basics: RGB representation
  2. Using Matlab to display images
  3. Generating images

·       “By hand”

·       Sinusoidal gratings

·       Gaussian blobs

Assignment for week 6

Week 7: Digital image processing

Background reading

·         http://www.mathworks.com/help/matlab/ref/conv2.html

·         http://www.mathworks.com/help/matlab/ref/fft2.html

·         http://www.mathworks.com/help/matlab/ref/ifft2.html

·         http://www.mathworks.com/help/matlab/ref/fftshift.html

Class Topics

Click here for Week 7 Class Files

  1. Convolution
  2. Time- versus frequency-domain representations of signals
  3. FFT and inverse-FFT for auditory (one-dimensional) stimuli
  4. 2D FFT and inverse-FFT for visual stimuli
  5. Filters
  6. Frequency-domain versus time-domain tradeoffs
  7. Tools

Assignment for week 7

Week 8: PsychToolbox

Background reading

Class Topics

Click here for Week 8 Class Files

  1. Rasters, rects, textures, screens
  2. Displaying generated images
  3. Points, lines, and geometric objects
  4. Text

·         Fonts, size

·         Getting text string sizes and positioning text

·         Filtering text characters

  1. Movies

Assignment for week 8

Week 9: Programming an expt: auditory-visual order

Background reading

Class Topics

Click here for Week 9 Class Files

It will be useful if you can bring headphones or earbuds to class today.

  1. Collecting responses
  2. Coordinating timing in audiovisual displays
  3. Discrete trials design with visual stimuli

Assignment for week 9

Week 10: Continuation & analysis

Background reading

                None, but please do the course evaluation on EEE

Class Topics

Click here for Week 10 Class Files

Also, please be sure that you have access to your SoundLight data file.

  1. Fitting Gaussian psychometric functions using MCMC
  2. Estimating the point of subjective equality
  3. Deriving Bayesian credible intervals for model parameters WeibullMCMC.m

Assignment for Week 10: do the course evaluation on EEE (have you heard that before ;-)

Finals Week

In-class, open-notes Final exam as scheduled.