Hi Tianwen,
I'll give you the Matlab formula, as the bash formula in the pipeline is
not as easy to follow:
mvm = load('Movement_Regressors.txt');
for i=1:6
a = mvm(:,i);
d = [a(2)-a(1);(a(3:end)-a(1:end-2))/2;a(end)-a(end-1)]
matlabD(:,i) = d;
end
You can compare matlabD to mvm(:,7:12).
Peace,
Matt.
On 3/12/13 2:04 PM, "Tianwen Chen" <[email protected]> wrote:
>Hello,
>
>I am wondering whether anyone knows how the temporal derivative motion
>regressors are calculated for the Movement_Regressors.txt file. I
>manually computed the derivatives by applying backward difference on
>the first 6 regressors but found out that they were not matched to the
>second 6 regressors (not even close) in the file.
>
>Thanks,
>Tianwen
>_______________________________________________
>HCP-Users mailing list
>[email protected]
>http://lists.humanconnectome.org/mailman/listinfo/hcp-users
________________________________
The materials in this message are private and may contain Protected Healthcare
Information or other information of a sensitive nature. If you are not the
intended recipient, be advised that any unauthorized use, disclosure, copying
or the taking of any action in reliance on the contents of this information is
strictly prohibited. If you have received this email in error, please
immediately notify the sender via telephone or return mail.
_______________________________________________
HCP-Users mailing list
[email protected]
http://lists.humanconnectome.org/mailman/listinfo/hcp-users