<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; } @font-face {
        font-family: Cambria Math;
}
 @font-face {
        font-family: Calibri;
}
 p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm 0cm 0pt; font-family: "Calibri",sans-serif; font-size: 11pt; } a:link, span.MsoHyperlink { color: rgb(5, 99, 193); text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: rgb(149, 79, 114); text-decoration: underline; } span.EmailStyle17 { color: windowtext; font-family: "Calibri",sans-serif; } .MsoChpDefault { font-family: "Calibri",sans-serif; } div.WordSection1 {  }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear all, </p>
<div style="color: rgb(33, 33, 33);">
<div>
<div class="WordSection1">
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am having an issue with the eegfiltnew function, which consistently returns an error. I thought I had resolved the error by reinstalling EEGLAB, however, it appears this was only a temporary fix, as one week later using the same version
 of EEGLAB and MATLAB, the error has returned.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">We implement a high and low pass filter using the following code, which uses parameters from Makoto's batch code:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-left: 36pt;">filtorder = 1650;</p>
<p class="MsoNormal" style="text-indent: 36pt;">hp_filter = 1.0;</p>
<p class="MsoNormal" style="text-indent: 36pt;">lp_filter = 45.0;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="text-indent: 36pt;">EEG = pop_eegfiltnew (EEG, hp_filter, [], filtorder, 0, [], 0);</p>
<p class="MsoNormal" style="text-indent: 36pt;">EEG = pop_eegfiltnew (EEG, [], lp_filter, filtorder, 0, [], 0);</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">It works fine for the other members of my team but in my EEGLAB, I get the following error:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">               Operands to the || and && operators must be convertible to logical scalar values.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">               Error in pop_eegfiltnew (line 275)</p>
<p class="MsoNormal">               If g.minphase || g.usefftfilt</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I have tried it on multiple PCs using both Matlab R2016b and Matlab R2018, with the latest version of EEGLAB. Has anyone else experienced these errors and managed to overcome them?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks in advance.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Chesney</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span>Dr Chesney Craig PhD</span></p>
<p class="MsoNormal"><span>Research Associate</span></p>
<p class="MsoNormal"><span>Department of Exercise and Sport Science</span></p>
<p class="MsoNormal"><span>Manchester Metropolitan University </span></p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
"Before acting on this email or opening any attachments you should read the Manchester Metropolitan University email disclaimer available on its website http://www.mmu.ac.uk/emaildisclaimer "
</body>
</html>