<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="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Hi Yuriria,</span>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">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="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Best wishes,</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Jan-Mathijs</div>
<div><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="http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path/" 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://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>