Matlab/SPM scripts and example data for distance correlation calculation for fMRI, based on Geerligs, L., Cam-CAN & Henson, R.N. (2016). Functional connectivity and structural covariance between regions of interest can be measured more accurately using multivariate distance correlation. Neuroimage, 135, 16-31.
Basic distance correlation Matlab functions: dcor_uc.m and dcor_dc.m
Example scripts and data