Matlab/SPM scripts and example data for distance correlation calculation for fMRI, based on [[http://www.mrc-cbu.cam.ac.uk/wp-content/uploads/2016/01/AbdulrahmanHenson_NI_trial_variability.pdf|Abdulrahman, H. & Henson, R.N. (2016). Effect of trial-to-trial variability on optimal event-related fMRI design: Implications for beta-series correlation and multi-voxel pattern analysis. Neuroimage, 125, 756–766.]] * Basic example using Matlab [[attachment:abdulrahman-henson2016.zip|scripts]]