[Eeglablist] how to load scalp maps in a script?

Danielle Farrar dfarrar at bu.edu
Sat Jun 25 08:29:36 PDT 2011


Hello,

This is a seemingly simple problem but I can't seem to resolve it.  I'm
trying to script plotting a series of averages, but I can't seem to load the
scalp map, so my figures are all just a series of numbers.  I'd also like to
script the 2-D scalp map plotting, but need a proper scalp map in order to
do it.  I've tried both pop_chanedit and pop_editset to no avail.

Here's a snippet of my code:

EEG = eeg_checkset( EEG );

EEG = pop_loadset( 'filename', [ExperimentType,'.set'] , 'filepath',
CNTDirectory);

EEG = eeg_checkset( EEG );

%Epoch the file - Common Trigger

ExpTypeCommon = [ExperimentType, ' Common']

EEG = pop_epoch( EEG, {CommonTrigger},[-0.15 1.0], 'newname', ExpTypeCommon,
'epochinfo', 'yes');

EEG = eeg_checkset( EEG );

EEG = pop_rmbase( EEG, [-150    0]);

EEG = eeg_checkset( EEG );

[ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, 1,'setname',ExpTypeCommon,
'gui','off');

EEG = eeg_checkset( EEG );

EEG = pop_editset(EEG, 'chanlocs',
'/Applications/eeglab10_0_0_0b/plugins/dipfit2.2/standard_BESA/standard-10-5-cap385.elp'
);

EEG = eeg_checkset( EEG );

----------------

I do this again for a rare set of stimuli.
Then, I try to plot (calling pop_editset or pop_chanedit once more for good
measure):



figure;

%EEG=pop_chanedit(EEG,
'lookup','/Applications/eeglab10_0_0_0b/plugins/dipfit2.2/standard_BESA/standard-10-5-cap385.elp');

EEG = pop_editset(EEG,

'chanlocs',
'/Applications/eeglab10_0_0_0b/plugins/dipfit2.2/standard_BESA/standard-10-5-cap385.elp'
);

EEG = eeg_checkset( EEG );

pop_comperp( ALLEEG, 1, [2 3] ,[], 'addavg','off','addstd','off','addall',
'on','diffavg','off','diffstd','off','tplotopt',{'ydir' 1});

The images loads just fine, but it is definitely not retaining the channel
locations.  Thoughts?


Thanks,

Danielle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20110625/409b1e42/attachment.html>


More information about the eeglablist mailing list