Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
walkthrough [2018/05/01 09:49]
213.124.184.154 [Trial bookkeeping, part I]
walkthrough [2018/05/01 09:51] (current)
213.124.184.154
Line 74: Line 74:
  
 Assuming we have marked our data file with codes representing conditions, we want to know how to segment the data relative to these markers. Note that although you might only be interested in the first second after the stimulus code, you might want to consider including a baseline period. Of course there are many other considerations. For the moment we will assume all trials to be of equal length and not to be overlapping. ​ Assuming we have marked our data file with codes representing conditions, we want to know how to segment the data relative to these markers. Note that although you might only be interested in the first second after the stimulus code, you might want to consider including a baseline period. Of course there are many other considerations. For the moment we will assume all trials to be of equal length and not to be overlapping. ​
-So first of all we need to specify what marker codes belong ​to what condition. We do that by creating two arrays of codes, one for every condition, e.g.:+So first of all we need to specify what marker codes belongs ​to what condition. We do that by creating two arrays of codes, one for every condition, e.g.:
     markersA = [1:5 11];                        % 1 2 3 4 5 11     markersA = [1:5 11];                        % 1 2 3 4 5 11
     markersB = [6:10 12];                       % 6 7 8 9 10 12     markersB = [6:10 12];                       % 6 7 8 9 10 12