<div dir="ltr">Dear Jim,<div><br></div><div>I figured that the error occurs when I tried to plot the ICA components using ft_databrowser, with viewmode as "component".</div><div><br></div><div>For the PC, I'm running a 64 bit Windows 7, 32 GB of RAM, and 1000 MB of graphics memory (NIVDIA Quadro 600). I've also tried the command on another PC running 64 bit Windows 7, Matlab R2012b, 64 GB of RAM and 457 MB of graphics memory. Both PCs produced the same internal error that crashes Matlab. I was not able to copy the message, as it was a pop out window that informs me of the fatal error, and I would have to end the program.</div>
<div><br></div><div>The funny thing was that I was able to plot the ICA components a month ago, but not able to. This error occurred once to me as well. I've also updated my fieldtrip toolbox to the version on 30 March 2014.</div>
<div><br></div><div>For the Macbook Pro, I did not get this error when I plotted the ICA components using the same data and the same commands.</div><div><br></div><div>I suspect that it may be a problem with my graphics memory, however, the error seems strange to me as it occurs on some times, and the error "disappears" on some other times.</div>
<div><br></div><div>I'm contemplating of converting one of my PC to a linux workstation. Do you think this will resolve my problems?</div><div><br></div><div>Thanks for your help. I'm totally lost here.</div><div>
<br></div><div>Best regards,</div><div>Hweeling</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 April 2014 17:10, Herring, J.D. (Jim) <span dir="ltr"><<a href="mailto:j.herring@fcdonders.ru.nl" target="_blank">j.herring@fcdonders.ru.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Hweeling,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Could you please copy and paste the exact error message Matlab is producing? Also, which version (e.g. 2013a) of Matlab are you using?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Jim<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a> [mailto:<a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a>] <b>On Behalf Of </b>Hwee Ling Lee<br>
<b>Sent:</b> maandag 31 maart 2014 17:25<br><b>To:</b> Stephen Politzer-Ahles; FieldTrip discussion list<br><b>Subject:</b> Re: [FieldTrip] Fieldtrip ICA crashes Matlab<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p>
<div><p class="MsoNormal">Hi,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks for your reply. I'm running Matlab with 64 bit. I've got 32GB of RAM installed. In the previous month, I was able to run ICA and plot its components without any error message from Matlab. Recently, I keep experiencing the error message, and Matlab crashes completely. I have no clue what could have gone wrong.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Cheers,<u></u><u></u></p></div><div><p class="MsoNormal">Hweeling<u></u><u></u></p></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
<u></u> <u></u></p><div><p class="MsoNormal">On 31 March 2014 17:08, Stephen Politzer-Ahles <<a href="mailto:politzerahless@gmail.com" target="_blank">politzerahless@gmail.com</a>> wrote:<u></u><u></u></p><div><p class="MsoNormal">
Hello Hweeling,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">What kind of error do you get in MATLAB when you try to do ICA, is it an "Out of memory" error? I'm asking because this is a fairly common issue in MATLAB on Windows systems (I don't know the details of your data, but I've experienced this issue on 32-channel, 1000-Hz epoched EEG data if the epochs are long enough and numerous enough). For me the only solutions (other than shortening the epochs or downsampling the data, which might not be good options depending on your research question) were to use a Unix-based operating system (like Mac OS) or to upgrade my Windows (I had errors like this when using a 32-bit version of Windows with 2 GB of RAM, but not so much after I upgraded to 64-bit and 8 GB of RAM). I'm not sure if this is the issue you're having, though.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Best,<u></u><u></u></p></div><div><p class="MsoNormal">Steve<u></u><u></u></p><div><p class="MsoNormal"><br clear="all"><u></u><u></u></p>
<div><div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br>
<a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div>
<p class="MsoNormal">On Mon, Mar 31, 2014 at 7:02 PM, <<a href="mailto:fieldtrip-request@science.ru.nl" target="_blank">fieldtrip-request@science.ru.nl</a>> wrote:<u></u><u></u></p><p class="MsoNormal">Send fieldtrip mailing list submissions to<br>
<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
or, via email, send a message with subject or body 'help' to<br> <a href="mailto:fieldtrip-request@science.ru.nl" target="_blank">fieldtrip-request@science.ru.nl</a><br><br>You can reach the person managing the list at<br>
<a href="mailto:fieldtrip-owner@science.ru.nl" target="_blank">fieldtrip-owner@science.ru.nl</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of fieldtrip digest..."<br>
<br><br>Today's Topics:<br><br> 1. Fieldtrip ICA crashes Matlab (Hwee Ling Lee)<br> 2. Re: plotting interpolated sources with ft_sourceplot<br> (J?rn M. Horschig)<br> 3. Re: help about ' fieldtrip2fiff ' (Gio Piantoni)<br>
<br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 31 Mar 2014 16:48:34 +0200<br>From: Hwee Ling Lee <<a href="mailto:hweeling.lee@gmail.com" target="_blank">hweeling.lee@gmail.com</a>><br>
To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>><br>Subject: [FieldTrip] Fieldtrip ICA crashes Matlab<br>Message-ID:<br> <CABG7z0SPtmOfGWxqRxiveg+cfUewJ8p8P-v9=<a href="mailto:poVtb-1ApZuDQ@mail.gmail.com" target="_blank">poVtb-1ApZuDQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br><br>Dear all,<br><br>I'm encountering a problem with running ICA in Matlab. After ICA, when I<br>tried to plot the components, Matlab keeps prompting an internal problem<br>
and needs to be closed. I wonder why this is the case. Could someone please<br>tell me what went wrong?<br><br>Here's part of my script for ICA:<br><br> cfg = []; % if data were cleaned, then use this<br><br> if sub == 5 %|| sub == 7<br>
cfg.channel = {'all', '-AFz', '-FT7'};<br> elseif sub == 7<br> cfg.channel = {'all' '-AFz'};<br> else<br> cfg.channel = {'all'};<br>
end<br><br> % cfg.runica.pca = 121; % using the rank of my data<br> % ic_data = ft_componentanalysis(cfg,cleandata); % if data were<br>cleaned then use this<br> ic_data = ft_componentanalysis(cfg, cleandata);<br>
<br> % after ICA, look for components that we want to substract from our<br>data,<br> % only looking at ten channels (components) at a time<br> cfg = [];<br> cfg.dataset = rawdatafile;<br> cfg.viewmode = 'component';<br>
cfg.continuous = 'no';<br> cfg.blocksize = 8;<br> cfg.channels = 'all';<br> cfg.layout = 'EEG1020.lay';<br> ft_databrowser(cfg,ic_data);<br><br><br>The internal problem appears even when I downsampled my data from 5000 Hz<br>
to 1000 Hz.<br><br>The internal problem appears also when I have short segments of my data<br>(i.e. 2s per trial), and long segments of my data (i.e. 6s per trial).<br><br>The memory of my PC workstation is:<br>Maximum possible array: 60253 MB (6.318e+10 bytes) *<br>
Memory available for all arrays: 60253 MB (6.318e+10 bytes) *<br>Memory used by MATLAB: 560 MB (5.872e+08 bytes)<br>Physical Memory (RAM): 32685 MB (3.427e+10 bytes)<br><br>Interestingly, this internal problem does not occur when I ran my script on<br>
my Macbook Pro.<br><br>I'm feeling very lost here. Any help is highly appreciated.<br><br>Cheers,<br>Hweeling<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140331/f756367f/attachment-0001.html" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140331/f756367f/attachment-0001.html</a>><u></u><u></u></p>
</div></div></div></div></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">=================================================<br>
Dr. rer. nat. Lee, Hwee Ling<br>Postdoc<br>German Center for Neurodegenerative Diseases (DZNE) Bonn<br><br>Email 1: hwee-ling.lee<at><a href="http://dzne.de" target="_blank">dzne.de</a><br>Email 2: hweeling.lee<at><a href="http://gmail.com" target="_blank">gmail.com</a><u></u><u></u></p>
<div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><a href="https://sites.google.com/site/hweelinglee/home" target="_blank">https://sites.google.com/site/hweelinglee/home</a><br><br>Correspondence Address:<br>
Ernst-Robert-Curtius Strasse 12, 53117, Bonn, Germany<br>=================================================<u></u><u></u></p></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
=================================================<br>Dr. rer. nat. Lee, Hwee Ling<br>Postdoc<br>German Center for Neurodegenerative Diseases (DZNE) Bonn<br><br>Email 1: hwee-ling.lee<at><a href="http://dzne.de" target="_blank">dzne.de</a><br>
Email 2: hweeling.lee<at><a href="http://gmail.com" target="_blank">gmail.com</a><div><br></div><div><a href="https://sites.google.com/site/hweelinglee/home" target="_blank">https://sites.google.com/site/hweelinglee/home</a><br>
<br>Correspondence Address:<br>Ernst-Robert-Curtius Strasse 12, 53117, Bonn, Germany<br>=================================================<br></div></div>
</div>