aforren1 / replan_finger

0 stars 0 forks source link

Requirements:

Optional:

Installation:

Explanation of data files

Starred elements (**) are included in the reduced dataset. NaN indicates missing data (e.g. no press, no force data in computer keyboard situation) PTB = Psychtoolbox

The "full" data file (stored as .mat) contains the following elements:

You can access individual elements of this struct via things like:

% print info for trial 
data(3)
ans = 

  struct with fields:

       preparation_time: 0.3625
            first_image: 3
           second_image: 8
     second_image_frame: 109
                     id: "sub007"
                    day: "1"
                  block: "1"
                  trial: 3
    second_image_sanity: 1.7989
      second_image_prep: 0.3678
            first_press: 8
                correct: 1
       time_first_press: 2.1263
         real_prep_time: 0.3275
              max_force: NaN
         time_max_force: NaN
              post_data: [8 2.2991e+03]
            trial_start: 2.2970e+03
              last_beep: 2.1667
        last_beep_frame: 130
         diff_last_beep: -0.0403
            block_start: 2.2863e+03

% look at distribution of preparation times
all_trs = cell2mat({data.real_prep_time});

Alternatively, you can do operations on the reduced data set. This is stored (and loaded) as 'long' format data.

tbl = readtable('data/sub007/sub007_test_day1_block1_162045.csv');
% same operations as above
tbl(3, :)
ans = 

    first_image    second_image       id       day    block    trial    first_press    correct    real_prep_time
    ___________    ____________    ________    ___    _____    _____    ___________    _______    ______________

    3              8               'sub007'    1      1        3        8              1          0.32747       

all_trs = tbl.real_prep_time;