Skip to content

Navigation Menu

Sign in
Sign up

FAQ: Content of d2nd #126

Unanswered
behinger asked this question in Q&A
Discussion options

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
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #65 on November 18, 2021 09:53.

AltStyle によって変換されたページ (->オリジナル) /