Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
System requirements Running these analysis scripts requires Matlab (version R2014b or later), and the SPM12 toolbox (freely available at https://www.fil.ion.ucl.ac.uk/spm/). These scripts have been tested using Matlab versions R2016b, R2017b, and R2021a. No non-standard hardware is required. Installation guide The Matlab scripts and data files can simply be copied to a folder of your choice. For Experiment 1, the script to run is Analyse_shortBlocks.m, and for Experiment 2 the relevant scripts are Analyse_longerBlocks.m and Analyse_longerBlocks_connectivity.m. Please change the path to the SPM 12 folder in line 9 of these scripts to the path to SPM 12 on your machine. When running one of the scripts, please make sure the folder containing the script is the current Matlab folder (e.g. by selecting 'Change Folder' when prompted). Instructions for use Simple run Analyse_shortBlocks.m (Experiment 1), Analyse_longerBlocks.m, or Analyse_longerBlocks_connectivity.m (Experiment 2) to reproduce all the graphs and statistical analyses described in the manuscript. The scripts will automatically load the fMRI time courses for the regions of interest for all participants, and run the analyses described in the Methods section of the manuscript. Demo, or running the code on pre-existing output If you do not wish to run the full analyses yourself, but still inspect the outputs, simply load one of the pre-run set of results into the Matlab workspace. For example, for Analyse_shortBlocks.m, load Analyse_shortBlocks_storedResults.mat into the Matlab workspace. (Analogous stored result files are included for the other two analysis scripts.) One can then simply run the lines of codes that generate the graphs and/or the lines of code that generate the quantitive statistical results. Running only these sections of the code will take mere seconds, and will reproduce the graphs and statistical results included in the manuscript.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.