<div dir="ltr">Hi John,<div><br></div><div>Thank you for the input! I tried your suggestion, and while that didn't work, it did help me realize what one of the bugfixes I linked to was actually suggesting. For anyone else who has this problem:</div><div><br></div><div>- type "which strjoin" - this will show you the strjoin function being used and where is it stored. If like me, you only had this issue after installing Cleanline, then it should be inside the Cleanline plugin. </div><div>- open strjoin - then follow the directions from this <a href="https://sccn.ucsd.edu/bugzilla/show_bug.cgi?id=1793">link</a>. The directions say to insert the code below on line 13 - what I misunderstood was that they are referring to line 13 of Cleanline's strjoin function, not the cleanline.m function.</div><div>- On line 13 of strjoin.m, insert:</div><div><pre class="gmail-bz_comment_text" style="font-size:medium;font-family:monospace;white-space:pre-wrap;width:50em;color:rgb(0,0,0);text-decoration-style:initial;text-decoration-color:initial">if ~ischar(adjoiner) && ~iscell(strings) %JPP's fix
oldadjoiner=adjoiner;
adjoiner=strings;
strings=oldadjoiner;
end</pre><font face="arial, helvetica, sans-serif">This fixed things for me.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">If anyone else has any suggestions for the ASR issue I mentioned in my first message, please let me know. </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks,</font></div><div><font face="arial, helvetica, sans-serif">Kelly</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 20, 2018 at 8:19 AM, Johnson, John T. <span dir="ltr"><<a href="mailto:john.johnson@gatech.edu" target="_blank">john.johnson@gatech.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="auto"><span>Hi Kelly,</span>
<div><span><br>
</span></div>
<div><span>I find that the strjoin error is caused by having eeglab or other folders listed before MATLAB folders in the path settings. You can tell if this is so by typing ‘which strjoin’ at the command prompt. You should see ‘…/matlab/strfun/strjoin.<wbr>m’. If
you see something else, that means that the variable display in matlab is using the wrong strjoin function. Go to the Home tab, Set Path, and move all the MATLAB folders to the top. (You can shift-select to make this easier.)<br>
</span><br>
<div id="m_350732239816659047cm_footer" class="m_350732239816659047cm_footer">
<div id="m_350732239816659047cm_signature">
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)">Regards,</span></div>
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)">John</span></div>
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)"><br>
</span></div>
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)">John T. Johnson</span></div>
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)">PhD Student - Applied Physiology</span></div>
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)">Georgia Institute of Technology</span></div>
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)"><a href="mailto:john.johnson@gatech.edu" target="_blank">john.johnson@gatech.edu</a></span></div>
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)">678.575.2093</span></div>
<div id="m_350732239816659047AppleMailSignature"><span style="line-height:20px;background-color:rgba(255,255,255,0)"><br>
</span></div>
</div>
<br>
<div id="m_350732239816659047cm_sent_from">via <a href="https://cloudmagic.com/k/d/mailapp?ct=dx&cv=9.8.415&pv=10.13.6&source=email_footer_2" target="_blank">
Newton Mail</a></div>
</div><div><div class="h5">
<span><br>
</span>
<div id="m_350732239816659047cm_replymail_content_wrap">
<div class="m_350732239816659047cm_replymail_content_1532088717_wrapper">On Thu, Jul 19, 2018 at 8:12 PM, Kelly Michaelis <<a href="mailto:kcmichaelis@gmail.com" target="_blank">kcmichaelis@gmail.com</a>> wrote:<br>
<div id="m_350732239816659047cm_replymail_content_1532088717" style="overflow:visible">
<blockquote style="margin:0;border-left:#d6d6d6 1px solid;padding-left:10px">
<div>
<div dir="ltr">Dear list,
<div><br>
</div>
<div>I'm fairly new to EEG, and I'm trying to implement ASR on my data, on which I plan to perform time-frequency analyses. I have everything installed and I've been following the ASR preprocssing pipeline recommended by<a href="https://sccn.ucsd.edu/wiki/Makoto's_preprocessing_pipeline#Alternatively.2C_cleaning_continuous_data_using_ASR_.2803.2F16.2F2018_updated.29" target="_blank">
Makoto.</a> This is on Mac OSSierra and I'm using EEGLAB v14_1_2b and Matlab 2016b. </div>
<div><br>
</div>
<div>I'm getting both the strjoin error with Cleanline that others have reported, and I get a visartifacts error from ASR, meaning I can't view the output from ASR to compare the original data with the ASR-cleaned data. I have tried the published fixes I could
find for these errors, and nothing has worked. More details below.<br>
</div>
<div><br>
</div>
<div>1. Cleanline error: after installing Cleanline, any time I try to view a variable in the matlab workspace by clicking on it, a dialog box pops up that says </div>
<div><br>
</div>
<div>"readonly</div>
<div>Expected input to be one of these types:</div>
<div>char</div>
<div>Instead it's type was cell.</div>
<div>strjoin</div>
<div>14"</div>
<div><br>
</div>
<div><br>
</div>
<div>I have seen this posted here (<a href="https://sccn.ucsd.edu/pipermail/eeglablist/2017/013003.html" target="_blank">https://sccn.ucsd.edu/<wbr>pipermail/eeglablist/2017/<wbr>013003.html</a>) and here (<a href="https://sccn.ucsd.edu/bugzilla/show_bug.cgi?id=1793" target="_blank">https://sccn.ucsd.edu/<wbr>bugzilla/show_bug.cgi?id=1793</a>)<wbr>.
The bugfix says to add some code in cleanline at line 13, but if I open cleanline.m I don't understand where to add this, as line 13 is all comments. What am I missing? </div>
<div><br>
</div>
<div><br>
</div>
<div>2. ASR visartifacts error - the output is below. I have seen a couple posts about similar errors, but haven't found a fix. Can someone help? If I uncheck the last box in ASR ("show results for comparison) I don't get any output and I'm not sure how to
view the rejected vs. original data. Can someone help?</div>
<div><br>
</div>
<div>OUTPUT: </div>
<div><br>
</div>
<div>
<div>Now doing final post-cleanup of the output.</div>
<div>Determining time window rejection thresholds...done.</div>
<div>Keeping 92.5% (3915 seconds) of the data.</div>
<div>eeg_insertbound(): 175 boundary (break) events added.</div>
<div>eeg_insertbound(): event latencies recomputed and 255 events removed.</div>
<div>Event resorted by increasing latencies.</div>
<div>Event resorted by increasing latencies.</div>
<div>Use vis_artifacts to compare the cleaned data to the original.</div>
<div>Undefined function or variable 'hFig'.</div>
<div><br>
</div>
<div>Error in vis_artifacts/on_resize (line 300)</div>
<div> wPos = get(hFig,'Position');</div>
<div><br>
</div>
<div>Error in vis_artifacts/on_window_<wbr>resized (line 311)</div>
<div> on_resize();</div>
<div> </div>
<div>Error using vis_artifacts (line 158)</div>
<div>Error while evaluating Figure SizeChangedFcn</div>
<div>You might see this error due to a behavior change in the ResizeFcn callback.</div>
<div>See ResizeFcn Returns Error After GUI Launches for more information.</div>
<div><br>
</div>
<div>Current plot held</div>
<div>Warning: vis_artifacts failed. Skipping visualization. </div>
<div>> In pop_clean_rawdata (line 129) </div>
<div>Done.</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thank you!</div>
<div>Kelly</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br></div>