<div dir="ltr">Thank you! I think in the end, I downloaded the wrong folder. I downloaded a new one and it is sort of working better, although it still will not run functions (like <span style="font-family:Helvetica"><span style="font-size:10px">eeglab2fieldtrip</span>) that are in subdirectories of field trip! </span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 23, 2020 at 11:35 AM Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl">jan.schoffelen@donders.ru.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="overflow-wrap: break-word;">
<div>Hi Karen,</div>
<div><br>
</div>
<div><br>
</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><br>
</div>
<div>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><br>
</div>
<div>Best wishes,</div>
<div>JM</div>
<div><br>
<div><br>
</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On 23 Oct 2020, at 17:44, Karen Konkoly <<a href="mailto:karenkonkoly@gmail.com" target="_blank">karenkonkoly@gmail.com</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>Hi Jan-Mathijs, </div>
<div><br>
</div>
<div>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><br>
</div>
<div>Best, <br>
Karen</div>
</div>
<br>
<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">jan.schoffelen@donders.ru.nl</a>> wrote:<br>
</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>
<br>
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>
<br>
Best wishes,<br>
Jan-Mathijs<br>
<br>
<br>
> On 23 Oct 2020, at 05:08, Karen Konkoly <<a href="mailto:karenkonkoly@gmail.com" target="_blank">karenkonkoly@gmail.com</a>> wrote:<br>
> <br>
> Hi,<br>
> <br>
> 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>
> <br>
> But, when I try to run ft_defaults to continue the installation, I get the following error:
<br>
> <br>
>  "Error in isfield (line 26)<br>
> y = isfield(x(1).value, key);<br>
> <br>
> Error in ft_defaults (line 94)<br>
> if ~isfield(ft_default, 'trackconfig'),       ft_default.trackconfig<br>
> = 'off';      end % cleanup, report, off" <br>
> <br>
> And the other functions of fieldtrip do not work (I am trying to use freqanalysis). Does anyone know how I can fix this?
<br>
> <br>
> Best, <br>
> Karen<br>
> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
> <a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">
https://doi.org/10.1371/journal.pcbi.1002202</a><br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>