<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="">
Hi Ivo,
<div class=""><br class="">
</div>
<div class="">You report an error in ft_getopt.m, line 41.</div>
<div class=""><br class="">
</div>
<div class="">My version of the code (in fieldtrip/utilities for example) lands somewhere in the function’s doc-string. In other words, in your case Matlab sidetracked into an (old / strange / un-updated ) version of the code.</div>
<div class="">Perhaps things will be solved if you define a clean path.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 5 Apr 2024, at 14:56, Ivaylo Iotchev via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">Dear community,<br class="">
<br class="">
I would like to plot pre-calculated averages/electrode onto a head-model (<span style="color:rgb(167,9,245);white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt" class="">easycapM1)
</span></div>
<div dir="ltr" class=""><span style="white-space:pre;font-size:10pt" class=""><font style="" face="arial, sans-serif" class="">These are averages (across subjects) of ITC values (inter-trial coherence) and</font></span></div>
<div class=""><span style="white-space:pre;font-size:10pt" class=""><font face="arial, sans-serif" class="">for reasons I can elaborate on request it was the easiest to store these values</font></span></div>
<div class=""><span style="white-space:pre;font-size:10pt" class=""><font face="arial, sans-serif" class="">in a separate column vector than to let topoplotER work on top of the ft_freqanalysis. Something seems lost in translation. Even when I create a structure
around the vector (making sure it's fields), </font></span></div>
<div class=""><font face="arial, sans-serif" class=""><span style="font-size:10pt;white-space:pre" class="">topoplot_ER does not want to work with it. Specifically the error messages I get are:</span> </font></div>
<div class=""><br class="">
</div>
<div class=""><font face="Menlo, Monaco, Consolas, Courier New, monospace" color="#ff0000" class=""><span style="font-size:13.3333px;white-space:pre" class="">Error using fieldnames Invalid input argument of type 'cell'. Input must be a structure or a Java
or COM object. Error in ft_getopt (line 41) prop_names = fieldnames(opt); Error in removefields (line 36) recursive = ft_getopt(varargin, 'recursive', false); Error in ft_preamble_provenance (line 51) cfg.callinfo.usercfg = removefields(cfg, ignorefields('provenance'));
Error in ft_preamble (line 83) evalin('caller', full_cmd); Error in ft_topoplotER (line 177) ft_preamble provenance varargin Error in human_consfigure (line 7) ft_topoplotER(cfg,Structia.freq)</span></font>
</div>
<div class=""><font face="Menlo, Monaco, Consolas, Courier New, monospace" color="#ff0000" class=""><span style="font-size:13.3333px;white-space:pre" class=""><br class="">
</span></font></div>
<div class=""><font face="arial, sans-serif" class=""><span style="font-size:13.3333px;white-space:pre" class="">Thank you dearly in advance, bests,</span></font></div>
<div dir="ltr" class="">
<div class=""><br class="">
</div>
<span class="gmail_signature_prefix">-- </span><br class="">
<div dir="ltr" class="gmail_signature">
<div dir="ltr" class="">Dr. Ivaylo Iotchev. Researcher. Active in the fields of ethology, psychology, and neuroscience<br class="">
Eötvös Loránd University, Budapest</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cbea778d7aef547372fa108dc57ba5087%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638481704938284934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=855NeGPaI7Ev1Yu95Ja8b9QWg%2BtIDH2NMcu6B20fmSc%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="nTxshhwQl/XDnJcjB4tgB3Iq15Y6GyePvX6O7txi/H6gEEV0iKt0Ff+i71V11QXleG7jaE2IQyb4P1hzYJLszmcjqAgU6hmDyWynrwcbh2ju0pUftPZSOv2ixDmBAnRpfYRJeKIaiu+lTvhPiieuAQe3HdrpOokh8Y2U+1B0GPE=" 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>
</body>
</html>