<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
John,<br class="">
<div>
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
<div class="">The answer is 'yes'. </div>
<div class=""><br class="">
</div>
<div class="">For epoched data, EEG.data typically has shape [channel x sample x epoch], so, for epoch ‘e'</div>
<div class=""><br class="">
</div>
<div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"></span>EEG.icaact(:,:,e) = (EEG.icaweights*EEG.icasphere)*EEG.data(</font><span style="font-family: Courier;" class="">EEG.icachansind</span><span style="font-family: Courier;" class="">,:,e)</span></div>
<div class=""><span style="font-family: Courier;" class=""><br class="">
</span></div>
<div class=""><span style="font-family: Courier;" class=""><br class="">
</span></div>
<div class="">The ICA solution does not vary with time, so the same unmixing solution is applied to every time point.</div>
</div>
</div>
<div><br class="">
</div>
<br class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><font face="Courier" class=""><br class="">
</font></div>
<div class="">If you want to get into it, look through e.g. eeg_checkset.m, which shows how EEG.data is reshaped into a 2-d matrix [channel x (samples*epochs)] for saving:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier;" class="">
<span class="Apple-tab-span" style="white-space:pre"></span>reshape(EEG.data, EEG.nbchan,  EEG.pnts*EEG.trials);</div>
</div>
<div class=""><br class="">
</div>
<div class="">and then when reloaded, ICA activations are recomputed on this 2-d matrix, and then put back into [channel x sample x epoch] shape:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier;" class="">
<span class="Apple-tab-span" style="white-space:pre"></span>EEG.icaact = (EEG.icaweights*EEG.icasphere)*EEG.data(EEG.icachansind,:);
<span style="color: rgb(37, 153, 45);" class="">% automatically does single or double</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier;" class="">
<br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier;" class="">
<span class="Apple-tab-span" style="white-space:pre"></span>EEG.icaact    = reshape( EEG.icaact, size(EEG.icaact,1), EEG.pnts, EEG.trials);</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">John</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">
<div style="orphans: 2; widows: 2;" class="">John R. Iversen, PhD</div>
<div style="orphans: 2; widows: 2;" class="">University of California, San Diego</div>
<div style="orphans: 2; widows: 2;" class="">Swartz Center for Computational Neuroscience</div>
<div style="orphans: 2; widows: 2;" class="">Institute for Neural Computation</div>
</div>
<div style="orphans: 2; widows: 2;" class="">
<div style="orphans: auto; widows: auto;" class="">9500 Gilman Dr #0559</div>
<div style="orphans: auto; widows: auto;" class="">La Jolla, CA 92093</div>
<div style="orphans: auto; widows: auto;" class=""><a href="mailto:jiversen@ucsd.edu" class="">jiversen@ucsd.edu</a></div>
<div style="orphans: auto; widows: auto;" class=""><br class="">
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Aug 1, 2018, at 9:18 AM, John Myers <<a href="mailto:john.myers@my.utsa.edu" class="">john.myers@my.utsa.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hello Everyone!</div>
<div class=""><br class="">
</div>
<div class="">I'm writing to ask how to generate ICA component activations (EEG.icaact) for single trials using the data structures in EEGLAB. </div>
<div class=""><br class="">
</div>
<div class="">I know that EEG.icaact = (EEG.icaweights*EEG.icasphere)*EEG.data. I'm wondering if this formula can be used to transform a single trial of EEG data into component activations. </div>
<div class=""><br class="">
</div>
<div class="">Concretely, my quesiton is, "C<span style="background-color: transparent; font-family: Arial; font-size: 11pt; white-space: pre-wrap;" class="">an I compute an IC activation for a single trial using the (EEG.icaweights*EEG.icasphere)*EEG.(single
 trial data)? If not, how can I do this using EEGLAB's structures. </span></div>
<div class=""><br class="">
</div>
Best wishes,
<div class=""><br class="">
-- <br class="">
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class=""><span style="font-size:12.8px" class="">John Myers, M.S.</span>
<div style="font-size:12.8px" class="">PhD Student</div>
<div style="font-size:12.8px" class="">Cognitive Neuroscience Lab</div>
<div style="font-size:12.8px" class="">UTSA</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" class="">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br class="">
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" class="">
eeglablist-unsubscribe@sccn.ucsd.edu</a><br class="">
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" class="">
eeglablist-request@sccn.ucsd.edu</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
<br class="">
</body>
</html>