Experiment design scripts
- Editing images for brightness, contrast, orientation:
- edit_image.m (need link to file)
- Batch renaming a collection of images:
- batch_rename.m (need link to file)
- Randomizing trials
- randomization.m (need link to file)
Data collection scripts
- Obtaining responses
a1 = input(‘Numerical question: ‘);
a2 = input(‘Text question: ‘, ‘s’);
- collecting a mouse click on a figure
figure(1); [x y b] = ginput(1);
- Obtaining reaction times
- tic and toc:
tic
a3 = input('what is 3 plus 3: ');
rt = toc;
- Organizing responses into a trial matrix and saving data
trial_matrix(1,:) = [1 a3 rt];
- Saving data
- save_data.m (need link to file)
Additional tools:
- Sound input & output: audio_examples.m (need link to file)
- Mouse tracking: gtrack2.m (need link to file)