I created this tool a couple of years ago to automatically create larger model spaces based on a single template file. Sometimes there is uncertainty about the presence or absence of a connection in your model. In DCM you account for that by manually creating two models where this connections is either turned on or off and compare there respective model evidences. It is easy to see that this manual approach is tedious for larger model spaces, when there is uncertainty about many connections.
sweetDCMvariate Create DCM models within a given model space based on a given template file. Template files should be created with the official SPM functions or compatible implementation. This tool will then create all variations of connectivity priors as defined in the template model.
Download file: sweetDCMvariate.m
Need some help? Found a bug? Please contact me.