<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Dear Becky,<div><br></div><div>Your code is fine and should run. Do not copy the icaact matrix though.</div><div>One issue might have to do with saving the changes and updating the EEGLAB interface.</div><div><br></div><div><div>[ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG, CURRENTSET);</div><div>eeglab redraw;</div></div><div><br></div><div>Alternatively, use menu item (Edit > Dataset info) and you can copy ICA weight between datasets on this interface.</div><div>You may also look at what is generated in the EEGLAB history (eegh) if you want to integrate this into a script.</div><div><br></div><div>Arno</div><div><br><div><div>On Nov 4, 2014, at 8:41 PM, Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Dear Becky,<div><br></div><div>Other other day I also encountered weird behavior of eeg_checkset().</div><div>I often copy EEG.icaweight and EEG.icasphere and run EEG = eeg_checkset(EEG, 'ica'); this usually creates EEG.icaact but it did not, so I needed to compute it my own.</div><div><br></div><div>As a workaround, could you run the code without the last line? It should be sufficient.</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 29, 2014 at 11:39 AM, Becky Prince <span dir="ltr"><<a href="mailto:becky.prince@york.ac.uk" target="_blank">becky.prince@york.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear list,<div><br></div><div>I've run ICA on a cleaned sets of data and then subtracted the components representing artifacts.  I'm now trying to copy the ICA results for each subject into a different data set, but it isn't working - the ICA fields are copied successfully, but the channel data are unaffected by ICA (i.e. the removed ICs are still present in the data).  </div><div><br></div><div>Here's the code, where ALLEEG(1) is the data set with ICA applied and with components removed, and ALLEEG(2) is the data set that I would like to apply the ICA results to.</div><div><br></div><div>ALLEEG(2).icaact = ALLEEG(1).icaact;</div><div>ALLEEG(2).icawinv = ALLEEG(1).icawinv;</div><div>ALLEEG(2).icasphere = ALLEEG(1).icasphere;</div><div>ALLEEG(2).icaweights = ALLEEG(1).icaweights;</div><div>ALLEEG(2).icachansind = ALLEEG(1).icachansind;</div><div>ALLEEG(2).etc = ALLEEG(1).etc;</div><div>ALLEEG(2) = eeg_checkset(ALLEEG(2));</div><div><br></div><div>Can anyone tell me where I'm going wrong?</div><div><br></div><div>Thanks!</div><div>Becky</div><div><div><div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">______________________________</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">______________</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Becky Gilbert (nee Prince)</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">PhD Researcher</span><div><br></div><div><a href="http://www.york.ac.uk/psychology/staff/postgrads/becky.gilbert/" target="_blank">http://www.york.ac.uk/psychology/staff/postgrads/becky.gilbert/</a><br></div><div>Lab C120<br><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Department of Psychology</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">University of York</span><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Heslington, York, YO10 5DD, UK</span><br></div></div></div></div></div>
</div></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>
_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a></blockquote></div><br></div></body></html>