<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=PT><div class=WordSection1><p class=MsoNormal>Dear all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am analysing data from EEG subjects. To remove artifacts, I used a code that was computed using the ft_rejectvisual function of 20191019 fieldtrip version. However, when the fieldtrip was uptaded to the 20200521, this error appeared: <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Index exceeds the number of array elements (1).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Error in rejectvisual_trial>redraw (line 274)<o:p></o:p></p><p class=MsoNormal> ymax = info.cfg.ylim(2);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Error in rejectvisual_trial (line 96)<o:p></o:p></p><p class=MsoNormal> redraw(h);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Error in ft_rejectvisual (line 230)<o:p></o:p></p><p class=MsoNormal> [chansel, trlsel, cfg] = rejectvisual_trial(cfg,<o:p></o:p></p><p class=MsoNormal> tmpdata);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Is ft_rejectvisual function deprecated? How can I solve this error? The version 20191019 is no longer available at the FTP server, but I know it works well because I tested the code with that old version.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance, <o:p></o:p></p><p class=MsoNormal>Best regards, <o:p></o:p></p><p class=MsoNormal>Helena Pereira<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>