-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0d25d56
Showing
81 changed files
with
15,818 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
To make these function work under the EEGLAB interface | ||
you must uncompress the ctf folder in the plugin directory | ||
of EEGLAB. Type | ||
|
||
cd eeglab4.311/plugins | ||
cvs -z3 -d:pserver:[email protected]:/cvsroot/eeg checkout ctf | ||
|
||
[use "move" instead of "mv" under windows] | ||
|
||
What these commands do is that they download all the files into | ||
a folder named ctf under the plugin sub-directory of your version of | ||
EEGLAB. | ||
|
||
Arnaud Delorme, July 9, 2004 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
clear all; | ||
|
||
folder='sampledataset.ds'; | ||
|
||
[data]=readepochs(folder); | ||
%wind = [-.1 .15]; | ||
%[data]=readepochs(folder,'markers',{'click'},'window',wind); | ||
%[data]=readepochs(folder,'window',wind,'trials',[1:10],'megsens',[2:7]); | ||
if ~exist('wind','var') | ||
wind = data.setup.start_sec; | ||
end | ||
dat=permute(data.epochs{1},[2,1,3]); | ||
size(dat) | ||
[ALLEEG EEG CURRENTSET ALLCOM] = eeglab; | ||
|
||
EEG = pop_importdata( 'nbchan', size(dat,1), 'dataformat', 'array', 'data', 'dat', ... | ||
'pnts', size(dat,2), 'srate', data.setup.sample_rate, 'xmin', wind(1)); | ||
|
||
[ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, CURRENTSET, 'setname','test'); | ||
eeglab redraw; | ||
|
||
for i=1:size(dat,1) | ||
EEG.chanlocs(i).labels = char(data.sensor.label(i)); | ||
EEG.chanlocs(i).X = data.sensor.location(1,i); | ||
EEG.chanlocs(i).Y = data.sensor.location(2,i); | ||
EEG.chanlocs(i).Z = data.sensor.location(3,i); | ||
end | ||
EEG.chanlocs = pop_chanedit(EEG.chanlocs, 'convert', 'cart2topo', 'convert', 'cart2sph'); | ||
|
||
[ALLEEG EEG] = eeg_store(ALLEEG, EEG, CURRENTSET); | ||
|
||
eeglab redraw; |
Oops, something went wrong.