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
workshop:ohbm2018:preprocessing [2018/06/14 18:05]
128.176.186.37 [Reading and preprocessing the interesting trials]
workshop:ohbm2018:preprocessing [2018/10/21 15:10] (current)
42.49.180.224 [Preprocessing EEG & MEG]
Line 1: Line 1:
- +===== Preprocessing EEG & MEG =====
- +
- +
-===== Preprocessing EEG & MEG ===== +
 ===== Introduction ===== ===== Introduction =====
  
Line 223: Line 219:
 scale = 10^6; % scale for eeg data micro volts  scale = 10^6; % scale for eeg data micro volts 
  
-signal_EEG = scale*pol*EEG_avg.avg;​ % add signle ​trials in a new value+signal_EEG = scale*pol*EEG_avg.avg;​ % add single ​trials in a new value
  
 % plot single trial together with global mean field power % plot single trial together with global mean field power
Line 241: Line 237:
 scale = 10^6; % scale for eeg data micro volts  scale = 10^6; % scale for eeg data micro volts 
  
-signal_MEG = scale*pol*MEG_avg.avg;​ % add signle ​trials in a new value+signal_MEG = scale*pol*MEG_avg.avg;​ % add single ​trials in a new value
  
 % plot single trial together with global mean field power % plot single trial together with global mean field power
Line 259: Line 255:
 mx = max(max(signal_EEG));​ mx = max(max(signal_EEG));​
 mn = min(min(signal_EEG));​ mn = min(min(signal_EEG));​
-axis([EEG_avg.time(1) EEG_avg.time(end) mn mx]) 
  
 % select time of interest for the source reconstruction later on % select time of interest for the source reconstruction later on
Line 295: Line 290:
 mx = max(max(signal_MEG));​ mx = max(max(signal_MEG));​
 mn = min(min(signal_MEG));​ mn = min(min(signal_MEG));​
-axis([MEG_avg.time(1) MEG_avg.time(end) mn mx]) 
  
 % select time of interest for the source reconstruction later on % select time of interest for the source reconstruction later on