<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dear Marco,</div><div><br></div><div>yes, this code is actually for power spectrum. </div><div>For 3 conditions, loop on each condition</div><div><br></div><div><i>for cond = 1:3</i></div><div><i><span class="Apple-tab-span" style="white-space:pre">   </span>spec_cond = spec{cond}</i></div><div><i><span class="Apple-tab-span" style="white-space:pre">    </span>... % compute CSD and plot</i></div><div><i>end;</i></div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><br><div><div>On 19 Jan 2013, at 03:07, Marco Montalto wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Arno,<div><br></div><div>Thank you for your reply and for all the information you have supplied me with. I just have two questions:</div><div><br></div><div>1) Can I use this code if I precompute measures in STUDY design for power spectrum?</div><div><br></div><div>2) I have three conditions in STUDY design. How do I produce CSD maps for each condition?</div><div><br></div><div>Thanks once again and looking forward to your reply.</div><div><br></div><div>Regards,</div><div>Marco</div><div><br><div><div>On 19 Jan 2013, at 02:59, Arnaud Delorme <<a href="mailto:arno@ucsd.edu">arno@ucsd.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div 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> </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><span><Screen Shot 2013-01-18 at 17.58.30.png></span></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">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></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div><br></body></html>