User Tools

Site Tools


gsr_data_analysis

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gsr_data_analysis [2010/06/18 23:23]
jochen changed from RawData to ChannelData to cope with resampling
gsr_data_analysis [2010/06/19 01:22]
jochen changed onsets to be in ms
Line 92: Line 92:
  
 % now split into three conditions % now split into three conditions
-neu = all_onsets(gsr.ChannelData(2,​ all_onsets) > 0); +neu = 0.01 * all_onsets(gsr.ChannelData(2,​ all_onsets) > 0); 
-neg = all_onsets(gsr.ChannelData(3,​ all_onsets) > 0); +neg = 0.01 * all_onsets(gsr.ChannelData(3,​ all_onsets) > 0); 
-rea = all_onsets(gsr.ChannelData(4,​ all_onsets) > 0);</​code>​+rea = 0.01 * all_onsets(gsr.ChannelData(4,​ all_onsets) > 0);</​code>​
  
 As window length for the inspection of the GSR data, we choose 15 seconds, so in the resolution of the resampled data that means 1,500 samples. As window length for the inspection of the GSR data, we choose 15 seconds, so in the resolution of the resampled data that means 1,500 samples.
Line 136: Line 136:
 reacurves = cell(numel(rea),​ 2); reacurves = cell(numel(rea),​ 2);
 for sc = 1:​numel(neu) for sc = 1:​numel(neu)
-    neucurves{sc,​ 1} = sprintf('​LookNeu %02d at t=%.3fs',​ sc, 0.01 * neu(sc)); +    neucurves{sc,​ 1} = sprintf('​LookNeu %02d at t=%.3fs',​ sc, neu(sc)); 
-    neucurves{sc,​ 2} = [gsrchannel,​ neu(sc) - 100, neu(sc) + 1400];+    neucurves{sc,​ 2} = [gsrchannel,​ neu(sc) - 2, neu(sc) + 14];
 end end
 for sc = 1:​numel(neg) for sc = 1:​numel(neg)
-    negcurves{sc,​ 1} = sprintf('​LookNeg %02d at t=%.3fs',​ sc, 0.01 * neg(sc)); +    negcurves{sc,​ 1} = sprintf('​LookNeg %02d at t=%.3fs',​ sc, neg(sc)); 
-    negcurves{sc,​ 2} = [gsrchannel,​ neg(sc) - 100, neg(sc) + 1400];+    negcurves{sc,​ 2} = [gsrchannel,​ neg(sc) - 2, neg(sc) + 14];
 end end
 for sc = 1:​numel(rea) for sc = 1:​numel(rea)
-    reacurves{sc,​ 1} = sprintf('​ReaNeg %02d at t=%.3fs',​ sc, 0.01 * rea(sc)); +    reacurves{sc,​ 1} = sprintf('​ReaNeg %02d at t=%.3fs',​ sc, rea(sc)); 
-    reacurves{sc,​ 2} = [gsrchannel,​ rea(sc) - 100, rea(sc) + 1400];+    reacurves{sc,​ 2} = [gsrchannel,​ rea(sc) - 2, rea(sc) + 14];
 end end
  
gsr_data_analysis.txt · Last modified: 2010/06/19 01:22 by jochen