This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subjPaths = {'/path/to/subjectfolder1/', '/path/to/subjectfolder2/', '/path/to/subjectfolder3/'}; | |
nsubjects = length(subjPaths); | |
expt.vowels = {'u', 'y'}; | |
expt.words = {'u', 'y'}; | |
expt.conds = {'training'}; | |
nvowels = length(expt.vowels); | |
ntrials = 50; % trials per vowel -- if different between subjects, define this in the loop |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [expt] = run_speaklisten_ptb(snum,dataPath,usetrigs,practicemode,manualmode) | |
if nargin < 1 || isempty(snum), snum = 0; end | |
if nargin < 2 || isempty(dataPath), dataPath = cd; end | |
if nargin < 3 || isempty(usetrigs), usetrigs = 1; end | |
if nargin < 4 || isempty(practicemode), practicemode = 0; end | |
if nargin < 5 || isempty(manualmode), manualmode = 0; end | |
% check for pre-existing dir and output files | |
if ~exist(dataPath,'dir') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [expt] = run_fliptest() | |
%% setup | |
ntrials = 50; % number of trials per block | |
stimdur = .1; % time stim is on screen, in seconds | |
interstimdur = .05; % minimum time between stims, in seconds | |
interstimjitter = .05; % maximum extra time between stims (jitter) | |
% psychtoolbox | |
AssertOpenGL; % Running on PTB-3? Abort otherwise. |