<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hi Karen,</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
with overloaded, I mean that there are more functions with the same name. isfield is a built-in matlab function, and it typically does not return an error with a specified line (which is opposed to what was suggested by your pasted error message).
<div class=""><br class="">
</div>
<div class="">I think the best way forward, would be to change into the directory of your downloaded fieldtrip version, and then try ft_defaults, after you have typed restoredefaultpath.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">JM</div>
<div class=""><br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 23 Oct 2020, at 17:44, Karen Konkoly <<a href="mailto:karenkonkoly@gmail.com" class="">karenkonkoly@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hi Jan-Mathijs, </div>
<div class=""><br class="">
</div>
<div class="">Thanks for your response! The first part of the error was "Index exceeds the number of array elements (0)." And there were a bunch of warnings before it. What do you mean by overloaded version? I just searched my computer, and it seems that this
 might also be a function in eeglab. What do you think I should do in that case? I tried taking eeglab off my path, but I still got the same error. </div>
<div class=""><br class="">
</div>
<div class="">Best, <br class="">
Karen</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Oct 23, 2020 at 10:22 AM Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank" class="">jan.schoffelen@donders.ru.nl</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi Karen,<br class="">
<br class="">
The error message you pasted is incomplete it seems, so it is not clear from a distance what went wrong. Do you by any chance have an overloaded version of an isfield.m function on your matlab path?<br class="">
<br class="">
Best wishes,<br class="">
Jan-Mathijs<br class="">
<br class="">
<br class="">
> On 23 Oct 2020, at 05:08, Karen Konkoly <<a href="mailto:karenkonkoly@gmail.com" target="_blank" class="">karenkonkoly@gmail.com</a>> wrote:<br class="">
> <br class="">
> Hi,<br class="">
> <br class="">
> I have downloaded fieldtrip and copied the folder into my matlab folder, and added the "fieldtrip toolbox" folder to my path (but not subfolders, as I read that they would be opened individually, as needed).
<br class="">
> <br class="">
> But, when I try to run ft_defaults to continue the installation, I get the following error:
<br class="">
> <br class="">
>  "Error in isfield (line 26)<br class="">
> y = isfield(x(1).value, key);<br class="">
> <br class="">
> Error in ft_defaults (line 94)<br class="">
> if ~isfield(ft_default, 'trackconfig'),       ft_default.trackconfig<br class="">
> = 'off';      end % cleanup, report, off" <br class="">
> <br class="">
> And the other functions of fieldtrip do not work (I am trying to use freqanalysis). Does anyone know how I can fix this?
<br class="">
> <br class="">
> Best, <br class="">
> Karen<br class="">
> _______________________________________________<br class="">
> fieldtrip mailing list<br class="">
> <a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank" class="">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
> <a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank" class="">
https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</blockquote>
</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="">
</div>
</div>
</body>
</html>