<div dir="ltr"><div>Hi Erfan,</div><div><br></div><div>Actually, I could not guess the reason for the error right now, It could be because of your data format, because of the FieldTrip version, or a completely different reason :) I can only suggest trying to define cfg.colormap manually if you haven't done it yet. You can assign a string for colormap. If I am not wrong, the recommended colormaps include 'parula', 'cividis', 'balance',and '*RdBu'. However, you can find more from the link below.</div><div><br></div><div><a href="https://urldefense.com/v3/__https://github.com/fieldtrip/fieldtrip/blob/master/plotting/ft_colormap.m__;!!HJOPV4FYYWzcc1jazlU!7_vQHuRJZ7C2_jEZ-7PdDNKGgdpAwN3zAS8rdYwAGytoJXLC_2TXcxM-7bN5pa86SUEIc9hPnIhO-pXCls4GlpCFBg$">https://github.com/fieldtrip/fieldtrip/blob/master/plotting/ft_colormap.m</a></div><div><br></div><div>I hope it works. <br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 9, 2023 at 10:13 PM Erfan Vi via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.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 dir="ltr">Hi Elif,<div><br><div>I get the following error while using the ft_databrowse function:</div><div><br></div><div><font color="#ff0000">Undefined function 'ft_colormap' for input arguments of type 'char'.</font></div><div><font color="#ff0000"><br>Error in ft_databrowser (line 686)<br>    cfg.colormap = ft_colormap(cfg.colormap);</font><br></div></div><div><font color="#ff0000"><br></font></div><div><font color="#000000">Do you know how to fix it?</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thank you for your attention to my problem.</font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 7, 2023 at 1:48 PM Elif Tülay via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.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 dir="ltr"><div>Hi Erfan,</div><div><br></div><div>Maybe I can suggest a way to try until a technical answer comes from Jan. If you are familiar with your data, you can detect the bad channel by visual inspection using ft_databrowse. After that, while you are running ICA, you can exclude the bad channel with the following format (you can modify it according to your data)</div><div><pre><i>     cfg.channel = {'all','-Cz'} %just an example for excluding Cz from all channels<br><br></i></pre><pre><span style="font-family:arial,sans-serif">I hope it works for you <br></span></pre><pre><span style="font-family:arial,sans-serif">Best<br></span></pre>

</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 7, 2023 at 12:41 PM Erfan Vi via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.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 dir="ltr">Hi Jan,<div><br><div>Thank you for your clear response. How can I determine the name of this bad channel which is recognizable in the forwarded image? I am new to FildTrip sorry for the basic questions.</div><div><br></div><div>Erfan-Vajdi</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 4, 2023 at 11:01 AM Schoffelen, J.M. (Jan Mathijs) via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.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>
Hi Erfan,
<div><br>
</div>
<div>These results look like a classical example of a bad channel. If you remove this channel from the data prior to running the IC decomposition, results should look more sensible.</div>
<div><br>
</div>
<div>Good luck,</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div>
<div><br>
<blockquote type="cite">
<div>On 29 Apr 2023, at 11:04, Erfan Vi via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Dear FieldTrip users,<br>
I have used an example script in the <br>
FieldTrip site to remove EOG artifacts for MEG data example located at <a href="https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/example/ica_eog/__;!!HJOPV4FYYWzcc1jazlU!8RVcT7vt9rwPHgbzvPH5IFv1KhvliFf9uclvd7fGeD9y3jTEiNhEtGq3rVOa03BcW9lZ3qoBc324h57I8PtCyKZbyA$" target="_blank">
https://www.fieldtriptoolbox.org/example/ica_eog/</a> using ICA. But I got poor results as below image. Any one can help me?<br>
Thank you,
<div><br>
</div>
<div><span id="m_-4438800510662250194m_5291667971909054338m_5197245708794978286m_-4032775908443509927cid:ii_lh1r9qta1"><ICA.jpg></span><br>
</div>
</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://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!_ooB63Attaf_OPdbDgrNPfoGjchpelM0P-JWMZ9lLTFVonbRSSbBpMb81R8FfvnjsUfICySBBmg0AjqLZ8PIy94KJuc3pStsIzKcgg$" target="_blank">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!_ooB63Attaf_OPdbDgrNPfoGjchpelM0P-JWMZ9lLTFVonbRSSbBpMb81R8FfvnjsUfICySBBmg0AjqLZ8PIy94KJuc3pStsIzKcgg$</a>
<br>
</div>
</blockquote>
</div>
<br>
</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://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!4R773UOYOcin6tMZO6P8DVlwEoIVVdQiPW4NcLrS8aUY6JORVUwBCQaELONuwMZnlqOPhvaATA2uroUdlj6TQKts1Q$" 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" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!78wfaL8guG-ERDfcMtJlfsMlm-2kAF65V4Nw6DWLMrhVqorpaATt5nUut9_x0qKtt2ofhlfC7OxWkMU2NYLJJgDR4g$" 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" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!4aDSeO_wQ2IlhjEGwnD5NENcLttDjKL8Jd5NtOzxIsyJEt-toB8Tub8bIrizroTGcI5IOELHjqB_CBlxmOuo6G8tig$" 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" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!7_vQHuRJZ7C2_jEZ-7PdDNKGgdpAwN3zAS8rdYwAGytoJXLC_2TXcxM-7bN5pa86SUEIc9hPnIhO-pXCls5Ad7el3Q$" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>