<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Jan, 
<div class=""><br class="">
</div>
<div class="">It got solved, in a super strange manner. I uninstalled and re-installed fieldtrip, and the error went away.</div>
<div class="">My assumption is that something got messed up with the path/private dir. </div>
<div class="">Thanks so much.</div>
<div class="">All the best, </div>
<div class="">Yuriria</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 3, 2019, at 10:46 AM, Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<span style="" class="">Hi Yuriria,</span>
<div class="" style=""><br class="">
</div>
<div class="" style="">Are you sure that the quoted line  'freqall = ft_appendfreq(cfg, freqall.freq);’ is correct? Reading this, I would assume that the input argument freqall is a structure, and that freqall.freq is a vector, which is an incorrect input to
 ft_appendfreq to begin with. </div>
<div class="" style=""><br class="">
</div>
<div class="" style="">Best wishes,</div>
<div class="" style="">Jan-Mathijs</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 30 May 2019, at 17:13, Yuriria Vazquez Zuniga <<a href="mailto:yvazquez@mail.rockefeller.edu" class="">yvazquez@mail.rockefeller.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hello, 
<div class=""><br class="">
</div>
<div class="">I keep having the following error when I try to run several of the fieldtrip functions like:</div>
<div class=""> ft_freqgrandaverage, ft_redefinetrial, ft_appendfreq, etc….</div>
<div class=""><br class="">
</div>
<div class="">The error is related to the software not been able to find the function or variable 'ftohDiW7th_FuncMem’.</div>
<div class=""><br class="">
</div>
<div class="">Text Error is the following:</div>
<div class="">
<div class="">Undefined function or variable 'ftohDiW7th_FuncMem'.</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_postamble_provenance (line 56)</div>
<div class="">cfg.callinfo.procmem  = memtoc(ftohDiW7th_FuncMem);</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_postamble (line 55)</div>
<div class="">  evalin('caller', ['ft_postamble_' cmd]);</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_selectdata (line 454)</div>
<div class="">ft_postamble provenance         % this records the time and memory at the end of the function, prints</div>
<div class="">them on screen and adds this information together with the function name and MATLAB version etc. to</div>
<div class="">the output cfg</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_appendfreq (line 176)</div>
<div class="">    [varargin{:}]    = ft_selectdata(tmpcfg, varargin{:});</div>
<div class=""><br class="">
</div>
<div class="">Error in CollapseSessionsPerDay_n_Average_CaseRest (line 149)</div>
<div class="">    freqall = ft_appendfreq(cfg, freqall.freq);</div>
</div>
<div class=""><br class="">
</div>
<div class="">I checked for my startup Mfile, and I configured as  indicated in: </div>
<div class=""><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.fieldtriptoolbox.org_faq_should-5Fi-5Fadd-5Ffieldtrip-5Fwith-5Fall-5Fsubdirectories-5Fto-5Fmy-5Fmatlab-5Fpath_&d=DwMGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=l7EKSVBzD6QfabzuzHb5D3YKdLdJIwSYGtXuakqdE80&m=YUEWu58O3NCeNJs0jRFaAGZSzG29y2fjpGe_6KfNYf4&s=51Mhze-M9xYdstXmsFnnx5Csza8WJ03qmhCNutrtglA&e=" class="">http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path/</a></div>
<div class=""><br class="">
</div>
<div class="">Do you guys have any suggestion on how to debug this?</div>
<div class="">All the best, </div>
<div class=""><br class="">
</div>
<div class="">Yuriria </div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwMGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=l7EKSVBzD6QfabzuzHb5D3YKdLdJIwSYGtXuakqdE80&m=YUEWu58O3NCeNJs0jRFaAGZSzG29y2fjpGe_6KfNYf4&s=s9JPITKyfRSdnh-Q1sHQGjwt6bj0F_kQx8DAPspPFQA&e=" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwIGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=l7EKSVBzD6QfabzuzHb5D3YKdLdJIwSYGtXuakqdE80&m=YUEWu58O3NCeNJs0jRFaAGZSzG29y2fjpGe_6KfNYf4&s=s9JPITKyfRSdnh-Q1sHQGjwt6bj0F_kQx8DAPspPFQA&e=" class="">https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwIGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=l7EKSVBzD6QfabzuzHb5D3YKdLdJIwSYGtXuakqdE80&m=YUEWu58O3NCeNJs0jRFaAGZSzG29y2fjpGe_6KfNYf4&s=s9JPITKyfRSdnh-Q1sHQGjwt6bj0F_kQx8DAPspPFQA&e=</a><br class="">
https://urldefense.proofpoint.com/v2/url?u=https-3A__doi.org_10.1371_journal.pcbi.1002202&d=DwIGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=l7EKSVBzD6QfabzuzHb5D3YKdLdJIwSYGtXuakqdE80&m=YUEWu58O3NCeNJs0jRFaAGZSzG29y2fjpGe_6KfNYf4&s=COh4CJm0QD1aojtR6BoGb0SP56C4wIE19wqXKR1jdHw&e=<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>