|
|||||
---|---|---|---|---|---|
|
|||||
LessonsIn this lesson we'll learn how to open a 'screen' using the psychtoolbox, put up some text, pause, and close the window. Once you get this working, you're well off the ground for puting up stimuli with the Psychophysics Toolbox. Functions/Scripts: Lesson_1, OpenWindow Our goal in this lesson is to generate a function that displays a field of moving dots, allowing for parameters such as the number of dots, aperture size, coherence, color and direction. Functions/Scripts: Lesson_2,secs2frames, angle2pix, pix2angle The goal in this lesson is to generate code to run a two-alternative forced-choice trial on a field of partially coherent moving dots. The subject will decide after a stimulus whether the overall motion of the dots was upward or downward. Functions/Scripts: Lesson_3,movingDots, drawText, waitTill, drawFixation Lesson 4: Measuring psychometric functions Functions/Scripts: Lesson_4, logy2raw, logx2raw Lesson 5: Fitting the psychometric function Functions/Scripts/Data:Lesson_5, Weibull,plotPsycho, fit, fitFunction, fitPsychometricFunction, resultsStaircase Lesson 6: Introduction to the Bootstrap When we summarize a data set with a statistic, such as when we calcualte a threshold from psychometric function data, we'd also like to know something about the reliability of that statistic. The brute-force way to estimate this reliability is to run the same experiment multiple times and calculate the mean and standard error of our statistic. But this can be time-consuming and expensive. Fortunately, there is a way of estimating the variability of a statistic from a single data set. This 'bootstrapping' method seems like magic, but as we'll demonstrate here it works remarkably well. Functions/Scripts: Lesson_6, inverseNormalCDF, bootstrap Lesson 7: Using the bootstap to estimate variability in thresholds Function/Scripts: Lesson_7, bootstrapWeibullThreshold, plotPsycho Reference: Wichmann, F.A. and N.J. Hill: The psychometric function: II. Bootstrap-based confidence intervals and sampling. Perception and Psychophysics 63 (8), 1314-1329 (2001) Lesson 8: Signal Detection Theory and the 'yes/no' experiment Functions/Scripts: Lesson_8 Lesson 9: ROC analysis Functions/Scripts: Lesson_9, plotPsycho
Lesson 10: ROC analysis of neuronal responses Functions/Scripts/Data: Lesson_10, NeuroData Lesson 11: 1-D Fourier Transforms The Fourier Transform is method for representing a 1-dimensional vector (like a time-series) in terms of 'frequencies'. It is typically used to find periodic signals buried in noise, and to design filters that only pass through a specific range of frequencies. Functions/Scripts: Lesson_11, plotFFT, complex2real, real2complex Lesson 12: Linear filters for 1-D time-series A 1-D 'filter' is a function that takes in a 1-D vector, like a time-series and returns another vector of the same size. Filtering shows up all over the behavioral sciences, from models of physiology including neuronal responses and hemodynamic responses, to methods for analyzing and viewing time-series data. Functions/Scripts: Lesson_12, leakyIntegrator, gamma, plotResp Lesson 13: Event-Related fMRI and 'Deconvolution' Functons/Scripts: Lesson 13, mseq References: Dale, A. (1999) "Optimal Experimental Design for Event-Related fMRI", Human Brain Mapping 8:109–114 This lesson will cover how to use matlab's 'fft2' function to look at the representation of 2-D images in the frequency domain. Functions/Scripts: Lesson_14, real2complex2, myifft2, myfft2, showImage, plotFFT2, complex2real2 Images: water.JPG, forest.jpg Lesson 15: Filtering 2-D images Functions/Scripts/Images:Lesson_15, plotResp2, Waldo.bmp In this lesson, I'll introduce a simple method that converts a sound wave and a vector of x and y spatial position over time into a souund wave that simulates what an observer would hear while standing at the origin. Functions/Scripts: Lesson_16, makeAuditoryMotion, animateAuditoryMotion |