<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px;">Dear all,</span><br style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px;"><div style="text-align: justify;"><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px;">I am new to FieldTrip and  trying to</span><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px; background-color: rgb(255, 255, 255);" class="">  </span><span style="font-family: Tahoma, Arial; line-height: 24px; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">do the time-frequency analysis of my eeg data , however it seems that no</span><span style="font-family: Tahoma, Arial; line-height: 24px; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> </span><span style="font-family: Tahoma, Arial; line-height: 24px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family: Tahoma, Arial; line-height: 24px; color: rgb(0, 0, 0); font-size: 14px; background-color: rgb(255, 255, 255);">suitable layout.</span></span><font face="Tahoma, Arial"><span style="line-height: 24px;"> And I use ft_prepare_layout function to make a custom layout(electrode_position32.mat</span></font><span style="line-height: 24px; font-family: Tahoma, Arial;">).</span></div><div style="text-align: justify;"><div><font face="Tahoma, Arial"><span style="line-height: 24px;">%% Time-frequency analysis </span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg              = [];</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.output       = 'pow';</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.channel      = 'EEG';</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.method       = 'mtmconvol';</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.taper        = 'hanning';</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.foi          = 2:2:30;                           </span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.t_ftimwin    = ones(length(cfg.foi),1).*0.5;   </span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.toi          = -0.5:0.05:1.5;                   </span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">TFRhann = ft_freqanalysis(cfg, data);</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;"><br></span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg = [];</span></font><span style="line-height: 24px; font-family: Tahoma, Arial;">       </span></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.showlabels   = 'yes';<span class="Apple-tab-span" style="white-space:pre">        </span></span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.layout       = '</span></font><span style="font-family: Tahoma, Arial; line-height: 24px;">electrode_position32.mat</span><font face="Tahoma, Arial"><span style="line-height: 24px;">';</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">figure </span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">ft_multiplotTFR(cfg, TFRhann);</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;"><br></span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg = [];</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.channel      = 'C4';</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">figure </span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">ft_singleplotTFR(cfg, TFRhann);</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;"><br></span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg = [];</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">cfg.layout = '</span></font><span style="font-family: Tahoma, Arial; line-height: 24px;">electrode_position32.mat</span><font face="Tahoma, Arial"><span style="line-height: 24px;">';<span class="Apple-tab-span" style="white-space:pre">      </span></span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">figure </span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;">ft_topoplotTFR(cfg, TFRhann);</span></font></div><div><font face="Tahoma, Arial"><span style="line-height: 24px;"><br></span></font></div></div><div style="text-align: justify;"><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px;">When I run the script. I am getting the following error.</span></div><div style="text-align: justify;"><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px;"><br></span></div><div style="text-align: justify;"><div><font face="lucida Grande, Verdana, Microsoft YaHei">Warning: (one of the) axis is/are not evenly spaced, but plots are made as if axis are linear </font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">> In ft_multiplotTFR at 405</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">  In TFanalysis_zhs_2 at 52 </font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">the call to "ft_multiplotTFR" took 0 seconds</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">the call to "ft_singleplotTFR" took 0 seconds</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">reading layout from file electrode_position32.mat</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">the call to "ft_prepare_layout" took 0 seconds</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">Warning: Some points fall outside the outline, please consider using another layout </font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">> In ft_plot_topo at 171</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">  In fieldtrip\private\topoplot_common at 731</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">  In ft_topoplotTFR at 192</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">  In TFanalysis_zhs_2 at 62 </font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">Index exceeds matrix dimensions.</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><br></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">Error in ft_plot_topo (line 182)</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">    mask{i}(end+1, :) = mask{i}(1, :);                   % force them to be closed</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><br></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">Error in topoplot_common (line 731)</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">  ft_plot_topo(chanX,chanY,datavector,opt{:});</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><br></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">Error in ft_topoplotTFR (line 192)</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">[cfg] = topoplot_common(cfg, varargin{:});</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><br></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">Error in TFanalysis_zhs_2 (line 62)</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei">ft_topoplotTFR(cfg, TFRhann);</font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><br></font></div><div><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px; text-align: start;">Do you have any suggestion about it?</span><br style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px; text-align: start;"><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px; text-align: start;">Thank you very much for your attention.</span></div><div><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px; text-align: start;"><br></span></div><div><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px; text-align: start;">Kind Regards,</span><br style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23.7999992370605px; text-align: start;">Hanson</div></div></div>