<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear FieldTrip list users,<div class=""><br class=""></div><div class="">I am trying to analyze a between-subjects experiment with cluster-based permutation tests. In setting up the tests, I followed the tutorial on the FieldTrip site (<a href="http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_freq#between-trial_experiments" class="">http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_freq#between-trial_experiments</a>).</div><div class=""><br class=""></div><div class="">However, when I try to plot the results, I get the error ā€ž<i class="">Error using ft_clusterplot (line 161) unsupported dimord unknown_freq_time</i>ā€œ. I am very new to FieldTrip and its probably a rookie mistake that I am making but Iā€™d be very grateful if someone who knows could point out what I might be doing wrong here.</div><div class=""><br class=""></div><div class="">Here is the code:</div><br class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);" class="">%% run cluster-based permutation test</div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45); min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);" class="">% set up cfg for ft_freqstatistics</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg = [];</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(178, 69, 243);" class=""><span style="color: #000000" class="">cfg.channel          = </span>'all'<span style="color: #000000" class="">; </span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.latency          = <span style="color: #b245f3" class="">'all'</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.frequency        = <span style="color: #b245f3" class="">'all'</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.method           = <span style="color: #b245f3" class="">'montecarlo'</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(178, 69, 243);" class=""><span style="color: #000000" class="">cfg.statistic        = </span>'ft_statfun_indepsamplesT'<span style="color: #000000" class="">;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.correctm         = <span style="color: #b245f3" class="">'cluster'</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.clusteralpha     = 0.05;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.clusterstatistic = <span style="color: #b245f3" class="">'maxsum'</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.minnbchan        = 2;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.tail             = 0;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.clustertail      = 0;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.alpha            = 0.025;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.numrandomization = 20; <span style="caret-color: rgb(37, 153, 45); color: rgb(37, 153, 45);" class="">% to make it quick</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);" class="">% prepare_neighbours determines what electrodes may form clusters</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg_neighb.method    = <span style="color: #b245f3" class="">'distance'</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.neighbours       = ft_prepare_neighbours(cfg_neighb, freq_IPFV);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.spmversion       = <span style="color: #b245f3" class="">'spm12'</span>;</div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">design = zeros(1,size(freq_IPFV.powspctrm,1) + size(freq_PFV.powspctrm,1));</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">design(1,1:size(freq_IPFV.powspctrm,1)) = 1;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">design(1,(size(freq_IPFV.powspctrm,1)+1):(size(freq_IPFV.powspctrm,1)+<span style="color: #0433ff" class="">...</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">  size(freq_PFV.powspctrm,1))) = 2;</div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.design           = design;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.ivar             = 1;</div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">[stat] = ft_freqstatistics(cfg, freq_IPFV, freq_PFV);</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);" class="">%% plot the results</div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45); min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg = []; </div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.keeptrials = <span style="color: #b245f3" class="">'no'</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">freqdesc_IPFV = ft_freqdescriptives(cfg, freq_IPFV);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">freqdesc_PFV  = ft_freqdescriptives(cfg, freq_PFV);</div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">stat.raweffect = freqdesc_IPFV.powspctrm - freqdesc_PFV.powspctrm;</div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg = [];</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.alpha  = 0.025;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.parameter = <span style="color: #b245f3" class="">'raweffect'</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.zlim   = [-1e-27 1e-27];</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(178, 69, 243);" class=""><span style="color: #000000" class="">cfg.layout = </span>'GSN-HydroCel-129.sfp'<span style="color: #000000" class="">;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">layout = ft_prepare_layout(cfg);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.layout = layout;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">ft_clusterplot(cfg, stat);</div></div><div class=""><br class=""></div><div class=""><div class="">Kind regards,</div><div class="">Sebastian</div></div><div class=""><br class=""></div><div class=""><div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">-----------</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Dr. Sebastian Sauppe</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Department of Comparative Linguistics, University of Zurich</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Homepage: <a href="https://sites.google.com/site/sauppes/" class="">https://sites.google.com/site/sauppes/</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Twitter: <a href="https://twitter.com/SebastianSauppe" class="">@SebastianSauppe</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Google Scholar Citations: <a href="https://scholar.google.de/citations?user=wEtciKQAAAAJ" class="">https://scholar.google.de/citations?user=wEtciKQAAAAJ</a> </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">ResearchGate: <a href="http://www.researchgate.net/profile/Sebastian_Sauppe" class="">http://www.researchgate.net/profile/Sebastian_Sauppe</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">ORCID ID: <a href="http://orcid.org/0000-0001-8670-8197" class="">http://orcid.org/0000-0001-8670-8197</a></div></div>
</div>
<br class=""></body></html>