Download scripts/runTestTrial.m from jalauer/Brown2020: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/datasets/jalauer/Brown2020/resolve/main/scripts/runTestTrial.m
- Command line
-
hf download hf://datasets/jalauer/Brown2020/scripts/runTestTrial.m
-
curl -L -o runTestTrial.m https://huggingface.co/datasets/jalauer/Brown2020/resolve/main/scripts/runTestTrial.m
510 Bytes
| function trial = runTestTrial(disp_struct, task_struct, trial, ioObject, LTP1address) | |
| % blank screen | |
| WaitSecs(0.5); | |
| Screen(disp_struct.wPtr, 'Flip'); | |
| % show the stims, and get the choice | |
| TRAINTEST=0; | |
| trial = runChoice(disp_struct, task_struct, trial, TRAINTEST, ioObject, LTP1address); | |
| % show too slow feedback | |
| if trial(task_struct.cRespAct) == disp_struct.RESP_SLOW | |
| runFeedback(disp_struct, task_struct, trial, ioObject, LTP1address); | |
| end | |
| end % function |