User Tools

Site Tools


eeglabsessh1b

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
eeglabsessh1b [2014/02/03 10:48]
bastienboutonnet
eeglabsessh1b [2014/10/08 03:14] (current)
Line 1: Line 1:
-<color Gray> 
-Be patient :) This page will go live on Wed, 5th at 10am.\\ 
-\\ 
-Until then, check the [[overview|overview]] page where you will find all the info about the hackathon.\\ 
-You can also download the necessary files [[download|here]]. 
- 
-</​color>​ 
-/** 
 ===== Getting cosy with EEGLAB: Batch Crews ===== ===== Getting cosy with EEGLAB: Batch Crews =====
 ==== 1. Basic programming tips & loops ==== ==== 1. Basic programming tips & loops ====
Line 34: Line 26:
   - List operations to be performed e.g., ''​a=rand()''​   - List operations to be performed e.g., ''​a=rand()''​
   - end loop   - end loop
-*/ + 
-/** %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+
 Here are a few basic loops: Here are a few basic loops:
-''​write loops later''​ +
-*/ +
-/**+
 <code matlab> <code matlab>
 people=[1,​0,​0,​1,​1];​ people=[1,​0,​0,​1,​1];​
Line 78: Line 68:
 end end
 </​code>​ </​code>​
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/​ + 
-/**+
 In our case, we will want to perform a series of operations which will be repeated **over participants**:​ In our case, we will want to perform a series of operations which will be repeated **over participants**:​
   * We will first "​load"​ our participants (say their participant number –but it could be anything)   * We will first "​load"​ our participants (say their participant number –but it could be anything)
Line 197: Line 187:
 EEG = pop_checkset(EEG);​ EEG = pop_checkset(EEG);​
 </​code>​ </​code>​
 +
  
 <WRAP center round todo 80%> <WRAP center round todo 80%>
Line 240: Line 231:
   * save final dataset. (NOTE. when saving datasets you might want to think of a way to name the dataset with the subject information) ​   * save final dataset. (NOTE. when saving datasets you might want to think of a way to name the dataset with the subject information) ​
 </​WRAP>​ </​WRAP>​
-*/ 
  
-/**+ 
 <file matlab ​ NightCrew.m>​ <file matlab ​ NightCrew.m>​
-subject={'​536', '538'};+% This script runs the initial and time consuming routines which 
 +% are usually ran at night especially if ICA decomposition is included 
 +
 +% Author: Bastien Boutonnet, bastien.b@icloud.com 
 + 
 + 
 +subject={'​505', '510'};
  
-pathname_read='/​Users/​pss059/​Desktop/QuickTests/'; +pathname_read='/​Users/​pss059/​Documents/MATLAB/​TutorialData/​EEGLABHack1/'; 
-pathname_write='/​Users/​pss059/​Desktop/QuickTests/​NightCrew/';​+pathname_write='/​Users/​pss059/​Documents/​MATLAB/​TutorialData/EEGLABHack1/​NightCrew/';​
  
 for i=1:​length(subject) for i=1:​length(subject)
-   ​fprintf('​Processing Subject #%g : %s?\n', i, subject{i});​+   ​fprintf('​Processing Subject #%g : %s...\n', i, subject{i});​
  
 %creates the destination folder assuming you have not created it manually before %creates the destination folder assuming you have not created it manually before
Line 263: Line 260:
     %try     %try
     %add electrode positions, and specify online ref     %add electrode positions, and specify online ref
- EEG = pop_loadcnt([pathname_read subject{i} '​.cnt'​] , '​dataformat',​ 'int32', '​memmapfile',​ '');+ EEG = pop_loadcnt([pathname_read subject{i} '​.cnt'​] , '​dataformat',​ '​int32'​);​
  EEG = pop_chanedit(EEG,​ '​append',​66,'​changefield',​{67 '​labels'​ '​Cz'​},'​lookup','/​Users/​pss059/​Documents/​MATLAB/​eeglab12_0_2_5b/​plugins/​dipfit2.2/​standard_BESA/​standard-10-5-cap385.elp','​setref',​{'​1:​67'​ '​Cz'​});​  EEG = pop_chanedit(EEG,​ '​append',​66,'​changefield',​{67 '​labels'​ '​Cz'​},'​lookup','/​Users/​pss059/​Documents/​MATLAB/​eeglab12_0_2_5b/​plugins/​dipfit2.2/​standard_BESA/​standard-10-5-cap385.elp','​setref',​{'​1:​67'​ '​Cz'​});​
     ​     ​
Line 311: Line 308:
  
 <color indianred>​DISCLAIMER:​ The tutorials provided on this wiki are not intended to compete with the tutorials written by the EEGLAB'​s (and other toolboxes) developers ([[http://​sccn.ucsd.edu/​wiki/​Main_Page|EEGLAB website]]). It intends to be a condensed version for educational/​reference purposes for members of the lab/​department to which this workshop was given.</​color>​ <color indianred>​DISCLAIMER:​ The tutorials provided on this wiki are not intended to compete with the tutorials written by the EEGLAB'​s (and other toolboxes) developers ([[http://​sccn.ucsd.edu/​wiki/​Main_Page|EEGLAB website]]). It intends to be a condensed version for educational/​reference purposes for members of the lab/​department to which this workshop was given.</​color>​
-*/+
  
 /** /**
eeglabsessh1b.1391424493.txt.gz · Last modified: 2014/10/08 03:14 (external edit)