<DIV id=RTEContent>  <DIV id=RTEContent>  <DIV>dear sir /madam,</DIV>  <DIV>i am a student working inthis field of EEG analysis for source localization. i read this on the site</DIV>  <DIV>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</DIV>  <DIV>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.</DIV>  <BLOCKQUOTE><FONT color=#3333ff><I>% point corresponding to 100 ms</I><BR>latency = 0.100; <BR>pt100 = round((latency-EEG.xmin)*EEG.srate);<BR><BR><I>% find the equivalent dipole position for the scalp map at the computed latency</I><BR>erp = mean(EEG.data(:,:,:), 3);<BR>[ dipole model ] = dipfit_erpeeg(erp(:,pt100), EEG.chanlocs);<BR><BR><I>% show dipole information</I><BR>dipole<BR><BR><I>% plot the dipole in 3-D</I><BR>dipplot(dipole, 'image', 'mri', 'sphere', max(model.vol.r), 'normlen', 'on');<BR><BR><I>% plot the dipole plus the scalp
 map</I><BR>dipolefortopoplot = [ dipole.posxyz(1,1:2) dipole.momxyz(1,1:3) ]/max(model.vol.r);<BR>figure; topoplot(erp(:,pt100), EEG.chanlocs, ...<BR>'dipole', dipolefortopoplot, 'dipnorm', 'on', 'electrodes', 'off');<BR>title([ 'ERP 100ms, fit with a single dipole (RV ' num2str(dipole.rv*100,2) '%)']);<BR></FONT></BLOCKQUOTE>  <DIV>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</DIV>  <DIV>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?</DIV>  <DIV> </DIV>  <DIV>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.</DIV>  <DIV> </DIV>  <DIV>with great expectations,</DIV>  <DIV>from G. Shivaprakash, </DIV></DIV></DIV><p>
                <hr size=1>Yahoo! Photos<br> 
Ring in the New Year with <a href="http://us.rd.yahoo.com/mail_us/taglines/photos/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38087/*http://pg.photos.yahoo.com/ph//page?.file=calendar_splash.html&.dir=">Photo Calendars</a>. Add photos, events, holidays, whatever.