-
Notifications
You must be signed in to change notification settings - Fork 19
FAQ: Content of d2nd
#126
I got asked whats in d2nd:
tmp = load(fullfile(projectFolder,'cache/n400_2nd.mat'));
d2nd = tmp.d2nd;
What is stored in tmp.d2nd matrix defined above ?!
And of course it is something I forgot to include in the tutorial (which will get a revamp with simulated data very soon!)
LOOP OVER SUBJECTS
LOAD SINGLE SUBJECT UF_CONDENSE OUTPUT
% first subject: initialize d2nd (2nd-level analysis)
if isempty(d2nd)
d2nd = ufresult;
d2nd.subject = subj;
d2nd.unfold= struct();
else
d2nd.beta(:,:,:,end+1) = ufresult.beta;
if isfield(ufresult,'beta_nodc')
d2nd.beta_nodc(:,:,:,end+1) = ufresult.beta_nodc;
end
d2nd.subject(end+1) = subj;
d2nd.unfold(end+1) = ufresult.unfold;
end
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment