<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" class="" style="word-wrap:break-word">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Arno et al.,<br>
<br>
Looking into running EEGLab GUI in Octave it seems that the critical changes needed are pretty trivial. I just commented out any instance of...<br>
<br>
if ~ismatlab,return; end;<br>
<br>
<div>... in eeglab.m. Then correcting an array orientation sensitivity in Octave's findobj.m (this was the only thing stopping inputgui.m from working).<br>
<br>
I posted a 7 minute demo video on SHARCNet's youtube channel <a href="https://www.youtube.com/watch?v=npz2pBIc9CU">
here</a>. The demonstration is performed on one of the visualization systems at SHARCNet.<br>
<br>
There are still pages and pages of warning messages in the command line when working with EEGLab GUI in Octave, and there are some clear performance reductions from Matlab<font size="2">. Octave should also be able to run PropertyGrid GUIs, but I have not worked
 through the bugs there yet.<br>
<br>
I think that given this new version of Octave it may be worth testing in Octave while developing GUIs in EEGLab.<br>
<br>
Very exciting I think.<br>
<br>
</font>James<font size="2"><span style="font-size:10pt"> </span></font></div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF694685"><font face="Tahoma" color="#000000" size="2"><b>From:</b> Arnaud Delorme [arno@ucsd.edu]<br>
<b>Sent:</b> September 8, 2015 5:07 PM<br>
<b>To:</b> James Desjardins<br>
<b>Cc:</b> mmiyakoshi@ucsd.edu; embar@super.lt; eeglablist<br>
<b>Subject:</b> Re: [Eeglablist] EEGLAB in GNU Octave 4<br>
</font><br>
</div>
<div></div>
<div>That’s really cool James. Let’s assess if making the entire EEGLAB code compatible with Octave is doable.
<div class=""><br class="">
</div>
<div class="">Arno</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Sep 8, 2015, at 9:17 PM, James Desjardins <<a href="mailto:jdesjardins@brocku.ca" class="" target="_blank">jdesjardins@brocku.ca</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="font-size:10pt; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; direction:ltr; font-family:Tahoma">
Hi Mindaugas,<br class="">
<br class="">
I use Octave regularly to execute EEGLab processing scripts on remote clusters. From the command line EEGLab is very compatible with Octave (as long as there are no Fieldtrip folders in the path).<br class="">
<br class="">
The issue with EEGLab compatibility has been with GUIs. Taking a look at Octave 4 now, I think that you are right in that the GUI compatibility may be "doable". For example, by simply replacing an instance of "str2mat" to "strvcat" in eegplot.m I am able to
 scroll through a data file from within Octave (with working menus etc.):<br class="">
<br class="">
<div class="" style="margin-top:0px; margin-bottom:0px"><span id="cid:d808b72c-06b5-4d70-9694-69f824a61529"><Octave_eegplot.png></span></div>
<br class="">
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
 This seems to be a very big step forward for Octave in this regard. That being said key functions like "inputgui" are not immediately compatible, but the required changes may be very systematic. I think that it will still be a big job to get the EEGLab GUI
 fully functional from within Octave, but I will keep my eyes open for systematic modifications that can be implemented to bring EEGLab GUI and Octave closer together (I know that this would be particularly valuable for interacting with data on remote HPC clusters).<br class="">
<br class="">
<div class="">
<div class="" style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment"><font class="" size="2"><span class="" style="font-size:10pt">
<div class="PlainText">James<br class="">
<br class="">
</div>
</span></font></div>
</div>
</div>
<div class="" style="font-family:'Times New Roman'; font-size:16px">
<hr tabindex="-1" class="">
<div id="divRpF816203" class="" style="direction:ltr"><font class="" face="Tahoma" size="2"><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:eeglablist-bounces@sccn.ucsd.edu" class="" target="_blank">eeglablist-bounces@sccn.ucsd.edu</a><span class="Apple-converted-space"> </span>[<a href="mailto:eeglablist-bounces@sccn.ucsd.edu" class="" target="_blank">eeglablist-bounces@sccn.ucsd.edu</a>]
 on behalf of Makoto Miyakoshi [<a href="mailto:mmiyakoshi@ucsd.edu" class="" target="_blank">mmiyakoshi@ucsd.edu</a>]<br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>August 3, 2015 5:12 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:embar@super.lt" class="" target="_blank">embar@super.lt</a>; Arnaud Delorme<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span>EEGLAB List<br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Eeglablist] EEGLAB in GNU Octave 4<br class="">
</font><br class="">
</div>
<div class=""></div>
<div class="">
<div dir="ltr" class="">Dear Mindaugas and Arno,
<div class=""><br class="">
</div>
<div class="">> I encourage developers of EEGLAB to maintain functionality in Octave 4 much<br class="">
closer to MATLAB!<br class="">
</div>
<div class="gmail_extra"><br class="">
</div>
<div class="gmail_extra">Thank you for update. I've personally never tried EEGLAB on Octave. In theory it's nice to be based on the GNU Octave and reduce dependency on Matlab. However, in practice we would not afford it unless we could get funding support for
 the project.<br class="">
</div>
<div class="gmail_extra"><br class="">
</div>
<div class="gmail_extra">I know there was such an attempt several years ago (Arno, any comment?)</div>
<div class="gmail_extra"><br class="">
</div>
<div class="gmail_extra">Makoto</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Jul 29, 2015 at 11:12 AM,<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:embar@super.lt" class="" target="_blank">embar@super.lt</a>></span><span class="Apple-converted-space"> </span>wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
Hi,<br class="">
<br class="">
Two months ago GNU Octave 4.0 released. It uses graphical user interface<br class="">
by default (OpenGL graphics with Qt libraries/widgets). I believe, in<br class="">
Octave, EEGLAB could work with GUI mode also, but how to do this. I<br class="">
encourage developers of EEGLAB to maintain functionality in Octave 4 much<br class="">
closer to MATLAB!<br class="">
<br class="">
--<br class="">
Regards,<br class="">
Mindaugas<br class="">
<br class="">
_______________________________________________<br class="">
Eeglablist page:<span class="Apple-converted-space"> </span><a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" class="" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br class="">
To unsubscribe, send an empty email to<span class="Apple-converted-space"> </span><a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" class="" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br class="">
For digest mode, send an email with the subject "set digest mime" to<span class="Apple-converted-space"> </span><a href="mailto:eeglablist-request@sccn.ucsd.edu" class="" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br class="">
</blockquote>
</div>
<br class="">
<br class="" clear="all">
<div class=""><br class="">
</div>
--<span class="Apple-converted-space"> </span><br class="">
<div class="gmail_signature">
<div dir="ltr" class="">Makoto Miyakoshi<br class="">
Swartz Center for Computational Neuroscience<br class="">
Institute for Neural Computation, University of California San Diego</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>