[Eeglablist] how to ?
Shivaprakash
shivakademane at yahoo.com
Mon Jan 23 05:11:11 PST 2006
dear sir /madam,
i am a student working inthis field of EEG analysis for source localization. i read this on the site
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Though the DIPFIT plug-in has not been expressly designed to fit dipoles to raw ERP or EEG scalp maps, EEGLAB provides a command-line function that can do so.
% point corresponding to 100 ms
latency = 0.100;
pt100 = round((latency-EEG.xmin)*EEG.srate);
% find the equivalent dipole position for the scalp map at the computed latency
erp = mean(EEG.data(:,:,:), 3);
[ dipole model ] = dipfit_erpeeg(erp(:,pt100), EEG.chanlocs);
% show dipole information
dipole
% plot the dipole in 3-D
dipplot(dipole, 'image', 'mri', 'sphere', max(model.vol.r), 'normlen', 'on');
% plot the dipole plus the scalp map
dipolefortopoplot = [ dipole.posxyz(1,1:2) dipole.momxyz(1,1:3) ]/max(model.vol.r);
figure; topoplot(erp(:,pt100), EEG.chanlocs, ...
'dipole', dipolefortopoplot, 'dipnorm', 'on', 'electrodes', 'off');
title([ 'ERP 100ms, fit with a single dipole (RV ' num2str(dipole.rv*100,2) '%)']);
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
how do i do the same kind of dipole fitting using say raw EEG, say"eeglab_data.set". what changes i should be making in the above code and why?
i am also facing dificulty in building a GUI using the functions like the two display M-files in the above code(dipplot and topoplot). the GUI layout is attached for your kind attention.
with great expectations,
from G. Shivaprakash,
---------------------------------
Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20060123/a534f7eb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: the GUI and source code for GUI.doc
Type: application/msword
Size: 38912 bytes
Desc: 655760100-the GUI and source code for GUI.doc
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20060123/a534f7eb/attachment.doc>
More information about the eeglablist
mailing list