<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div dir="ltr"><div dir="ltr"><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">Dear community,</p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;"><br></p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">My name is Angela and I am working in the UvA Sleeplab in Amsterdam on sleep and memory. Currently I am analysing EEG data and want to make time frequency plots with corresponding topoplots revealing statistical differences between conditions. I already got time frequency plots, but I'm having problems with creating the topoplots and statistics. </p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;"><br></p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">I preprocessed my data, did time frequency analysis on it with ft_freqanalysis, grandaveraged the single TFs across conditions with ft_freqgrandaverage (and plotted those results) and performed cluster based permutation statistics on it with ft_freqstatistics. I tried using ft_clusterplot to assess topographies with highlighted clusters originating from ft_freqstatistics. </p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;"><br></p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">When I called it, I got several results ranging from not being able to plot anything because dimensions were wrong, to 57 clusterplots. (why?)</p><p style="text-align:justify;"><span style="font-family:Calibri, Geneva, Arial, Verdana, sans-serif;font-size:15px;line-height:22.5px;">I got the message that dimord dimensions were exceeded, its not supporting chan_freq_time. Because I have a priori knowledge, I averaged over a frequency range with: </span><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">cfg.frequency = [5 8]; </span></font><span style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;">cfg.avgoverfreq = 'yes';. Then I was able to plot, but giving strange results. </span><span style="font-family:Calibri, Geneva, Arial, Verdana, sans-serif;font-size:15px;line-height:22.5px;">(See attachtment 1-4). </span><span style="font-family:Calibri, Geneva, Arial, Verdana, sans-serif;font-size:15px;line-height:22.5px;">I tried cfg.zlim with maxmin and also without specifing it, without result.</span></p><p style="text-align:justify;"><span style="font-family:Calibri, Geneva, Arial, Verdana, sans-serif;font-size:15px;line-height:22.5px;">In order to solve the dimension problem I used ft_freqdescriptives, also shown at the example at your website, resulting in a lot of topographies which I cannot use. I tried to plot cfg.parameter = 'stat' and with cfg.parameter = 'raweffect', where stat is the outcome of ft_freqstatistics and stat.raweffect = grandavg1.powspctrm - grandavg3 as shown at </span><a href="http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_freq" target="_blank" style="line-height:22.5px;font-size:12pt;">http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_freq</a><span style="font-family:Calibri, Geneva, Arial, Verdana, sans-serif;font-size:15px;line-height:22.5px;"> at: Between trial experiments under: Plotting the results. But then again I'm getting an error: </span><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">Error using ft_clusterplot (line 151), </span></font><span style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;">unsupported dimord chan_unknown_time. Because the grandaveraged data with freqdescriptives is again 3D, chan_freq_time.</span></p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;"><br></p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">The cfg and data I use are as follows:</p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">>> display(cfg)</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">cfg = </span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> alpha: 0.0250</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> parameter: 'raweffect'</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> layout: 'waveguard_layout_064ch2.lay'</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">>> display(stat)</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">stat = </span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> prob: [65x1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> posclusters: [1x2 struct]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> posclusterslabelmat: [65x1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> posdistribution: [1x500 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> negclusters: [1x3 struct]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> negclusterslabelmat: [65x1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> negdistribution: [1x500 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> cirange: [65x1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> mask: [65x1x351 logical]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> stat: [65x1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> ref: [65x1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> dimord: 'chan_freq_time'</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> freq: 6.4898</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> label: {65x1 cell}</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> time: [1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> cfg: [1x1 struct]</span></font></p><p style="text-align:justify;"></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> raweffect: [65x35x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">>> display(grandavg1)</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">grandavg1 = </span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> powspctrm: [4-D double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> label: {65x1 cell}</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> freq: [1x35 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> time: [1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> dimord: 'subj_chan_freq_time'</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> cfg: [1x1 struct]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">>> display(grandavg3)</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;">grandavg3 = </span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> powspctrm: [4-D double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> label: {65x1 cell}</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> freq: [1x35 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> time: [1x351 double]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> dimord: 'subj_chan_freq_time'</span></font></p><p style="text-align:justify;"></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"> cfg: [1x1 struct]</span></font></p><p style="text-align:justify;"><font face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:15px;line-height:22.5px;"><br></span></font></p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">Can someone tell me if there is something wrong with the cfg settings I use or if I am doing something wrong at any other place? Any help would be appreciated!</p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;"><br></p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">I also included my script starting from time frequency analysis. I used only 2 subjects per condition (condition 3 being control) only to try out my script, because I once already processed my data wrongly and I want to avoid that I have to redo all my data over and over. I'm not the best programmer, but it should give an idea of my most recent settings. </p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;"><br></p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">All the best,</p><p style="font-size:15px;line-height:22.5px;font-family:Calibri, Geneva, Arial, Verdana, sans-serif;text-align:justify;">Angela</p></div>
</div></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style> </div></body>
</html>