<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment">If that is the case then in theory, you could take out of the design all the subjects you want to change and add them back in labeled under the new condition, or the subject ID labeled as something slightly different from the original
to designate them as the new condition then precompute just those new ones. This could save some amount of time precomputing, although still not ideal to your goal of avoiding having to re-do the precomputation.
</div>
<div class="BodyFragment"><br>
</div>
<div class="BodyFragment">Makoto (or anyone else) do you have any suggestions on how to speed up the rate of precomputing ERSPs?</div>
<div class="BodyFragment"><br>
</div>
<div class="BodyFragment">-Chantelle.</div>
<div class="BodyFragment"><br>
</div>
<div class="BodyFragment"><br>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF279290" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> eeglablist-bounces@sccn.ucsd.edu [eeglablist-bounces@sccn.ucsd.edu] on behalf of Makoto Miyakoshi [mmiyakoshi@ucsd.edu]<br>
<b>Sent:</b> Wednesday, December 02, 2015 10:42 AM<br>
<b>To:</b> Iman Mohammad-Rezazadeh<br>
<b>Cc:</b> EEGLAB List<br>
<b>Subject:</b> Re: [Eeglablist] Changing group/condition after precomputation<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Dear Iman,
<div><br>
</div>
<div><span style="font-family:'Calibri Light',sans-serif">> Does anyone have any SUCCESSFUL experience about changing group/condition for a subject(s) at STUDY level and </span><u style="font-family:'Calibri Light',sans-serif">after precomputation</u><span style="font-family:'Calibri Light',sans-serif">.</span><br>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">No. If I understand correctly, STUDY design does not have such post-hoc flexibility at all. If you change STUDY design, you need to precompute everything again. A small exception may be that when you add subjects you can precompute
the additional ones with the same STUDY design but with different STUDY and integrate into the original STUDY later; you can start from preculustering in this case.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Makoto</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Dec 1, 2015 at 3:01 PM, Iman Mohammad-Rezazadeh <span dir="ltr">
<<a href="mailto:irezazadeh@ucdavis.edu" target="_blank">irezazadeh@ucdavis.edu</a>></span> wrote:<br>
<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">
<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-family:'Calibri Light',sans-serif">Hi EEGLABers,<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:'Calibri Light',sans-serif">Does anyone have any SUCCESSFUL experience about changing group/condition for a subject(s) at STUDY level and
<u>after precomputation</u>. I have been trying to write a script to change STUDY.design data ( see below) and then realized that I have to change STUDY.</span><span style="font-size:10pt; font-family:'Calibri Light',sans-serif; color:black">datasetinfo . I
did that but again when I plot the subject data which I changed its grp/condition the old labels showed up in the plot. Then I found I have to change STUDY.changrp as well but it really complicated and hard to track the script.
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Calibri Light',sans-serif; color:black">Any suggestions?<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Calibri Light',sans-serif; color:black">Best,<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Calibri Light',sans-serif; color:black">Iman</span><span style="font-size:12pt; font-family:'Calibri Light',sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:blue">function</span><span style="font-size:10pt; font-family:'Courier New'; color:black"> STUDY=Change_Subject_Var(STUDY,design_no,case_no,var_no,new_var_name)</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:rgb(34,139,34)">%Change_Subject_Var(STUDY,design_no,case_no,var_no,new_var_name)</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black">no_file=length(STUDY.design(1).cell);</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:blue">for</span><span style="font-size:10pt; font-family:'Courier New'; color:black"> i=1:no_file</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> temp_case=STUDY.design(design_no).cell(i).case;</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black">
</span><span style="font-size:10pt; font-family:'Courier New'; color:blue">if</span><span style="font-size:10pt; font-family:'Courier New'; color:black"> strcmp(temp_case,case_no)</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> STUDY.design(design_no).cell(i).value(var_no)=new_var_name;</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black">
</span><span style="font-size:10pt; font-family:'Courier New'; color:blue">end</span><span style="font-size:10pt; font-family:'Courier New'; color:black">
</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:blue">end</span><span style="font-size:10pt; font-family:'Courier New'; color:black">
</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> </span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black">no_file=length(STUDY.datasetinfo);</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:blue">for</span><span style="font-size:10pt; font-family:'Courier New'; color:black"> i=1:no_file</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> temp_case=STUDY.datasetinfo(i).subject;</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black">
</span><span style="font-size:10pt; font-family:'Courier New'; color:blue">if</span><span style="font-size:10pt; font-family:'Courier New'; color:black"> strcmp(temp_case,case_no)</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> STUDY.datasetinfo(i).group=cell2mat(new_var_name);</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black">
</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> </span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> </span><span style="font-size:10pt; font-family:'Courier New'; color:blue">end</span><span style="font-size:10pt; font-family:'Courier New'; color:black">
</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:blue">end</span><span style="font-size:10pt; font-family:'Courier New'; color:black">
</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> </span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> </span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> </span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:black"> </span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt; font-family:'Courier New'; color:blue">end</span><span style="font-size:12pt; font-family:'Courier New'"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12pt; font-family:'Courier New'"><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</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>
</div>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Navy" size="2"><br>
IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure
and confidential manner. Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your
computer.<br>
</font>
</body>
</html>