<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><br><div id="yui_3_16_0_ym19_1_1492821483748_6525"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6526">Thanks for the comments.</font></div><div id="yui_3_16_0_ym19_1_1492821483748_6527"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6528">I created the the average ERSP figures from several subjects with STUDY. </font></div><div id="yui_3_16_0_ym19_1_1492821483748_6529"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6530">1) What is the issue, with STUDY the scale is logarithmic. Is it possible to get the ERSP figure with linear scaling using STUDY or I should write a script for that?</font></div><div id="yui_3_16_0_ym19_1_1492821483748_6531"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6532">2) I used caxis([-6 6]) command like bellow to get uniform dB range for different plots but it did not work</font></div><div id="yui_3_16_0_ym19_1_1492821483748_6649"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6650">How should I modify it?</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6651"><span style="font-size: small;"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6651"><span style="font-size: small;" id="yui_3_16_0_ym19_1_1492821483748_6895">From the literture: </span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6651"><span style="font-size: small;" id="yui_3_16_0_ym19_1_1492821483748_6946">%  'caxis'       - [min max] color axis (ERSP, ITC, scalp maps)</span><br></div><div id="yui_3_16_0_ym19_1_1492821483748_6535"><br></div><div id="yui_3_16_0_ym19_1_1492821483748_6540"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6541"><br id="yui_3_16_0_ym19_1_1492821483748_6542"></font></div><div id="yui_3_16_0_ym19_1_1492821483748_6543"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6544">Thanks,</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6545"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6546">Nabi </font></div><div id="yui_3_16_0_ym19_1_1492821483748_6547"><font color="#24292e" face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol" id="yui_3_16_0_ym19_1_1492821483748_6548"><span style="font-size: 14px;" id="yui_3_16_0_ym19_1_1492821483748_6549"><br id="yui_3_16_0_ym19_1_1492821483748_6550"></span></font></div><div id="yui_3_16_0_ym19_1_1492821483748_6551"> </div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6552"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6553">[ALLEEG EEG CURRENTSET ALLCOM] = eeglab;</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6554"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6555">MAIN='C:\\Users\\user\\Desktop\\ersp\\';</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6556"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6557"><br id="yui_3_16_0_ym19_1_1492821483748_6558"></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6559"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6560">SUBJ={'sbj3_'};</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6561"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6562"><br id="yui_3_16_0_ym19_1_1492821483748_6563"></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6564"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6565">for s=1:length(SUBJ)</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6566"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6567">   </font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6566"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6815"> EEG= pop_loadset([SUBJ{s},'condition1.set'], MAIN);</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6568"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6569"> </font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6570"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6571"> figure; pop_newtimef( EEG, 1, 22, [-1000  1998], [0] , 'topovec', 22,</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6572"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6573"> 'elocs', EEG.chanlocs, 'chaninfo', EEG.chaninfo, 'caption', 'Cz',</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6574"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6575"> 'baseline',[0], 'freqs', [1:100], 'plotphase', 'off', 'padratio', 1);</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6576"><font size="3"><br></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6576"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6577">caxis([-6 6])</font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6578"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6579"></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6580"><font size="3"><br></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_6580"><font size="3" id="yui_3_16_0_ym19_1_1492821483748_6581">end</font></div><table data-tab-size="8" style="border-collapse: collapse; box-sizing: border-box; border-spacing: 0px; tab-size: 8; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;" id="yui_3_16_0_ym19_1_1492821483748_6582"><tbody style="width: 20px; box-sizing: border-box;" id="yui_3_16_0_ym19_1_1492821483748_6583"><tr style="box-sizing: border-box;" id="yui_3_16_0_ym19_1_1492821483748_6584"></tr><tr style="box-sizing: border-box;" id="yui_3_16_0_ym19_1_1492821483748_6585"><td style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; word-wrap: normal; white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1492821483748_6586"><br id="yui_3_16_0_ym19_1_1492821483748_6587"></td></tr></tbody></table><table data-tab-size="8" style="box-sizing: border-box; border-spacing: 0px; border-collapse: collapse; tab-size: 8; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;" id="yui_3_16_0_ym19_1_1492821483748_3693"><tbody style="box-sizing: border-box;" id="yui_3_16_0_ym19_1_1492821483748_3694"><tr id="yui_3_16_0_ym19_1_1492821483748_3695" style="box-sizing: border-box;"></tr><tr id="yui_3_16_0_ym19_1_1492821483748_3696" style="box-sizing: border-box;"></tr></tbody></table><div dir="ltr" id="yui_3_16_0_ym19_1_1492821483748_3702"><span style="font-size: medium;">     </span><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, April 21, 2017 2:29 PM, Tarik S Bel-Bahar <tarikbelbahar@gmail.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div dir="ltr">Hello Nabi,<br clear="none">Try setting this up with STUDY, which should average them for you, and<br clear="none">allow you to see grand average ERSP figures.<br clear="none">If you try to hack it with code, you can replace the EEG.data with an<br clear="none">average of the single-subject averages.<br clear="none">to be safe,  try first making an EEG2 variable, change the .data<br clear="none">within in, and then feed EEG2 to the pop_newtimef function.<br clear="none"><div class="yqt4389645884" id="yqtfd91182"><br clear="none">On Wed, Apr 19, 2017 at 3:48 PM, Nabi Rustamov <<a shape="rect" ymailto="mailto:nabi.rustamov@yahoo.com" href="mailto:nabi.rustamov@yahoo.com">nabi.rustamov@yahoo.com</a>> wrote:<br clear="none">> Hello,<br clear="none">> I am trying to get the average ERSP figure from 2 subjects. The script that<br clear="none">> I am using, creates the ERSP figures for each subject separately. Which<br clear="none">> command should I add to the script bellow to get the avaerage ERSP? I tryed<br clear="none">> to use the commands that I use for getting average ERP figure but it did not<br clear="none">> work. Thanks. Nabi<br clear="none">><br clear="none">><br clear="none">> [ALLEEG EEG CURRENTSET ALLCOM] = eeglab;<br clear="none">> MAIN='C:\\Users\\user\\Desktop\\ersp\\';<br clear="none">><br clear="none">> SUBJ={'sbj3_' 'sbj4_'};<br clear="none">><br clear="none">> for s=1:length(SUBJ)<br clear="none">>     EEG= pop_loadset([SUBJ{s},'condition1.set'], MAIN);<br clear="none">> %     EEG2= mean(EEG.data,3);<br clear="none">> %     all_erp(s,:)= squeeze(erp);<br clear="none">>     figure; pop_newtimef( EEG, 1, 22, [-1000  1998], [0] , 'topovec', 22,<br clear="none">> 'elocs', EEG.chanlocs, 'chaninfo', EEG.chaninfo, 'caption', 'Cz',<br clear="none">> 'baseline',[0], 'freqs', [1:100], 'plotphase', 'off', 'padratio', 1);<br clear="none">><br clear="none">> end</div><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> Eeglablist page: <a shape="rect" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br clear="none">> To unsubscribe, send an empty email to <a shape="rect" ymailto="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br clear="none">> For digest mode, send an email with the subject "set digest mime" to<br clear="none">> <a shape="rect" ymailto="mailto:eeglablist-request@sccn.ucsd.edu" href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><div class="yqt4389645884" id="yqtfd52289"><br clear="none"></div></div><br><br></div>  </div> </div>  </div></div></body></html>