Mind Reading

From CCN Wiki
Jump to navigation Jump to search

Determine Targets

Classifying Blocks

Use findBlockBoundaries to determine when blocks start and end. For each run, create a vector of zeros with a length equal to the endpoint of the last block:

b=bookends{1,1}; %creating targets for first run, so use first set of bookends
s=zeros(1,b(end)); %1 zero for each volume -- default=baseline
for block=1:size(b,1)
 s(b(block,1):b(block,2))=1; %block volumes get a '1'
end