Apply affine transformation in matlab

Hello,

I did an affine transformation from one T1 image to another of the same subject scanned at the different time using -t a in antsRegistrationSyN.sh. I would like to apply the .mat transformation matrix to another image of the same subject in matlab (I know we have applytransformation function which works in my case). The xxxGenericAffine.mat seems only a vector when loaded in matlab, is there any documentation regarding how to convert this vector into a transformation matrix and apply to a 3D image matrix? Thanks a lot

Hi,

The parameters are described here