### [Stimulus codes (Click here to access files)][1]
This contains the stimulus presentation code for both the behavioural (psychophysics) and fMRI (pRF mapping) experiments. Moreover, this contains the analysis functions for the psychophysical experiments upon data collection. Requires MATLAB and Psychtoolbox 3. Other dependencies are included.
---
**Main behavioral experiment**
(Perceived SF after SF adaptation):
/Behavioral/SF_Adapt_SF.m
SF_Adapt_SF(SbjID, Practice, viewingDist)
*Usage:*
SF_Adapt_SF('participant01', 1, 298)
---
**Control behavioral experiment**
(Perceived contrast after SF adaptation):
/Behavioral/SF_Adapt_Contrast.m
SF_Adapt_Contrast(SbjID, Practice, viewingDist)
*Usage:*
SF_Adapt_SF('participant01', 1, 298)
---
**fMRI experiment**
(pRF mapping after SF adaptation):
/fMRI/SF_Adapt_Bars.m
SF_Adapt_Bars(Subj_ID, AdaptCond, SaveAps)
*Usage:*
FOR SCANNING:
SF_Adapt_Bars('participant01', 'HL')
FOR TESTING:
SF_Adapt_Bars([], 'HL')
---
**NOTES:**
- All dependencies, except Psychtoolbox functions, are included in the
folders.
- Make sure your current directory is the folder containing these functions
and Psychtoolbox is on your path.
- These functions are almost exactly the same as how they have been used to
run the experiments. The specific display settings we used may not match
your settings. Minor adjustments may be needed (screen number, font sizes,
etc.).
- Refer to the functions for more information.
contact: ecem.altan@auckland.ac.nz
[1]: https://osf.io/trxu5/files/osfstorage