<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Marco,<div><br></div><div>based on another email I sent earlier to the list.</div><div><br></div><div><div><i>% merge all channel location structures for the STUDY</i></div><div><i>mergelocs = eeg_mergelocs(ALLEEG.chanlocs);</i></div><div><i><span class="Apple-style-span" style="font-style: normal; "><i> </i></span></i></div><div><i>% get ERSP results (scalp maps) - for example scalp topography of spectrum in the alpha band</i></div><div><i>[STUDY spec ] = std_specplot(STUDY,ALLEEG,'channels', { mergelocs.labels }, 'topofreq', [8 12]);<br></i></div><div><i><br></i></div><div>then you may use one of the many laplacian function eeg_laplac.m is a good one although you will have to rebuild a dataset to use it. Something like</div><div><br></div><div><i>TMP = EEG(1);</i></div><div><i>TMP.chanlocs = mergelocs;</i></div><div><i>TMP.data = squeeze(spec{1});</i></div><div><i>CSD = eeg_laplac(TMP, 1);</i></div><div><br></div><div><i>% plot average CSD scalp topography</i></div><div><i>average_CSD = mean(CSD,2); % average across subjects</i></div><div><i>figure; topoplot(average_CSD, mergelocs);</i></div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><br></div><div><img height="229" width="452" apple-width="yes" apple-height="yes" id="f756e66e-b4fe-437f-8818-5f07ccf4afe0" src="cid:05C22CF7-83FC-4E84-9C8D-36D408102C97"></div><div><br></div><div>On 17 Jan 2013, at 13:56, Marco Montalto wrote:</div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dear List,<br><br>Is there a way of producing CSD (current source density) maps in EEGLAB, in a STUDY design?<br><br>Marco Montalto<br>_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></div></blockquote></div><br></div></body></html>