


simtb_addMotion() - Simulates motion (translation/rotation) of dataset
Pads images to larger dimensions
Translates and rotates images at each time point
Usage:
>> [Dnew, sP, mp] = simtb_addMotion(sP, D, sub)
INPUTS:
sP = parameter structure used in the simulations
D = dataset with dimensions [nT, nV*nV]
sub = index number for subject
OUTPUTS:
Dnew = new dataset with simulated motion
sP = parameter structure, updated with new nV
mp = [nT, 3] matrix of motion parameters [x-trans ,y-trans, rotation].
Translation units are proportions of the original image length.
Rotation units are degrees.
see also: simtb_makeMotParams()