Hi All,<br><br>The tutorial here (<a href="http://fieldtrip.fcdonders.nl/tutorial/beamformer">http://fieldtrip.fcdonders.nl/tutorial/beamformer</a>) provides example of activity contrasted with baseline, but not activity of condition 1 contrasted with condition 2.<br>
<br>Could someone kindly give some example code that contrasts two activities, for example left vs right button pressing?<br><br>I am thinking about modifying the example code in the tutorial, by turn the code<br>-------<br>
sourceDiff = sourcePost_con;
<br>sourceDiff.avg.pow = (sourcePost_con.avg.pow - sourcePre_con.avg.pow) ./ sourcePre_con.avg.pow;<br>--------<br>into A:<br>--------<br>sourceDiff = sourceLeft_con;<br> sourceDiff.avg.pow = (sourceLeft_con.avg.pow - sourceRight_con.avg.pow) ./ sourceRight_con.avg.pow;<br>
--------<br><br>or into B:<br>--------<br>sourceDiff = sourceRight_con;<br> sourceDiff.avg.pow = (sourceRight_con.avg.pow - sourceLeft_con.avg.pow) ./ sourceLeft_con.avg.pow;<br>--------<br><br>Not sure if I should use "A" or "B", or something else.<br>
<br>thanks,<br>Frank<br>