Have a look at the instructions here:
Fill in the entries for the Deformations module then click on View >
Show .m code to display the structure of the matlabbatch variable.
Note that, if you only want to apply a deformation field to a set of
images, you can use the Spatial>Normalise:Write module instead; both are
wrappers around the spm_deformations function.
On 12/04/17 08:42, Alain Imaging wrote:
> quick follow up: how can I apply the deformation field from the command line rather than using batch -> utils -> deformations ?
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG