<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="">i had the same issue … first i thought i may not have the image processing toolbox installed.<div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 10.02.2019 um 23:58 schrieb Alexandre Chalard <<a href="mailto:alexandre.chalard@inserm.fr" class="">alexandre.chalard@inserm.fr</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="caret-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; text-decoration: none;">Dear all,</div><div class="" style="caret-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; text-decoration: none;"><br class=""></div><div class="" style="caret-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; text-decoration: none;">When I try to perform an analysis with my PC with the following code : </div><div class="" style="caret-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; text-decoration: none;"><br class=""></div><div class="" style="caret-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; text-decoration: none;"><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.neighbours       = ft_prepare_neighbours(cfg_neighb, DataP);</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.channel          = ROI;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.latency          = [0 100];</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.frequency        = [13 30];</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.method           =<span class="Apple-converted-space"> </span><span class="" style="color: rgb(0, 209, 0);">'montecarlo'</span>;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas; color: rgb(0, 209, 0);"><span class="" style="">cfg.statistic        =<span class="Apple-converted-space"> </span></span>'ft_statfun_indepsamplesT'<span class="" style="">;</span></div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.correctm         =<span class="Apple-converted-space"> </span><span class="" style="color: rgb(0, 209, 0);">'cluster'</span>;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.clusteralpha     = 0.05;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.clusterstatistic =<span class="Apple-converted-space"> </span><span class="" style="color: rgb(0, 209, 0);">'maxsum'</span>;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.minnbchan        = 2;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.tail             = 0;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.clustertail      = 0;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.alpha            = 0.025;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.numrandomization = 100;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.avgovertime      =<span class="Apple-converted-space"> </span><span class="" style="color: rgb(0, 209, 0);">'yes'</span>;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.avgoverfreq      =<span class="Apple-converted-space"> </span><span class="" style="color: rgb(0, 209, 0);">'yes'</span>;</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">design = [];</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">design(1:numel(PFiles))         = 1;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">design(end+1:end+numel(TFiles)) = 2;</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.design = design;</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">cfg.ivar   = 1;</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Consolas;">stat = ft_freqstatistics(cfg,DataP,DataT);</div></div><div class="" style="caret-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; text-decoration: none;"><br class=""></div><div class="" style="caret-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; text-decoration: none;">Everything is working, but when I try with my macbook pro, the function doesn’t work. </div><div class="" style="caret-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; text-decoration: none;">The permutation progress take directly the value 100 on 100, and the matlab status is busy with no return and no possibility to break the code (ctrl-c), I need to close matlab to stop the execution.</div><div class="" style="caret-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; text-decoration: none;"><br class=""></div><div class="" style="caret-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; text-decoration: none;">Does anyone have an idea or have the same problem? </div><div class="" style="caret-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; text-decoration: none;"><br class=""></div><div class="" style="caret-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; text-decoration: none;">Kind regards,</div><br class="" style="caret-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; text-decoration: none;"><div class="" style="caret-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; text-decoration: none;">Alexandre Chalard<br class="">--<br class="">PhD student<br class=""><br class=""></div><br class="" style="caret-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; text-decoration: none;"><span style="caret-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; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-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; text-decoration: none;" class=""><span style="caret-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; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip mailing list</span><br style="caret-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; text-decoration: none;" class=""><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-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; text-decoration: none;" class=""><a href="https://doi.org/10.1371/journal.pcbi.1002202" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br style="caret-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; text-decoration: none;" class=""><style class="">ul[class*='mb-extra__public-links'], ul[class*='mb-note__public-links'], ul[class*='mb-task__public-links'] { display: none !important; }</style></div></blockquote></div><br class=""></div><img src="https://bowtie.mailbutler.io/tracking/hit/95b468b3-5055-40be-ace5-1832b802b958/b4da5df8-fa32-44ba-bbb0-d97d20f0716f/t.gif" align="left" width="0" height="0" style="width:0;height:0;border:0;" title="" alt="" id="MailbutlerTrackingPixel" class="lp-rich-link"></body></html>