Differences

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

Link to this comparison view

mgl:taskreferencefunctionreference [2011/06/01 21:39]
mgl:taskreferencefunctionreference [2013/10/08 21:56]
Line 128: Line 128:
 | segmin | array of minimum length of segment | | segmin | array of minimum length of segment |
 | segmax | array of maximum length of segment | | segmax | array of maximum length of segment |
-segquant ​| array of quantization ​of segment ​lengths ​(used with segmin and segmax--i.e. if you want segments ​to be randomized in steps of 0.6 seconds, then set the sequant for that segment to be 0.6) |+segdur ​a cell array (not all cells have to be set they can be empty) which specifies an array of values for the length ​of segment ​for example segdur{2} = [1 3 5] would set segment 2 to have durations 1, 3 or 5 seconds long| 
 +| segprob | a cell array (not all cells have to be set they can be empty) which specifies an array of values for the probability of how often each segdur will happen, so if we have segdur{2} = [1 3 5] and segprob{2} = [0.4 0.5 0.1], then this would set segment ​to have durations 1, 3 or 5 seconds long with probability ​0.4 0.5 and 0.1 respectively. Note that if no segprob is set for a non-empty segdur than each of the durations in segdur will occur with equal probability.|
 | synchToVol | array where one means that the segment will synch to the next volume acquisiton once the segment is finished. | | synchToVol | array where one means that the segment will synch to the next volume acquisiton once the segment is finished. |
 | getResponse | array where one means to get subject responses during that segment, set to zero means that subject responses will be ignored and the responseCallback will not be called | | getResponse | array where one means to get subject responses during that segment, set to zero means that subject responses will be ignored and the responseCallback will not be called |
Line 168: Line 169:
 ===== upDownStaircase ===== ===== upDownStaircase =====
  
-Implements a staircase for control of stimulus variable values. Type 'help upDownStaircase'​ for details. Also see taskTemplateFlashingStaircase.m and taskTemplateStaticStaircase.m for examples of using this function.+Implements a staircase for control of stimulus variable values. Type 'help upDownStaircase'​ for details. Also see taskTemplateStaircase.m for examples of using this function. 
 ===== jumpSegment ===== ===== jumpSegment =====