no worries<br><br><div class="gmail_quote">2013/3/9 ida miokovic <span dir="ltr"><<a href="mailto:ida.miokovic@gmail.com" target="_blank">ida.miokovic@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear Makoto,<div><br></div><div>thank you very much.</div><div><br></div><div>It worked.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Ida</font></span><div>

<div class="h5"><br><br><div class="gmail_quote">On Sat, Mar 9, 2013 at 9:03 PM, ida miokovic <span dir="ltr"><<a href="mailto:ida.miokovic@gmail.com" target="_blank">ida.miokovic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Makoto,<div><br></div><div>I did what you suggested (loaded 3 data sets)</div><div>In my first email regarding this question I mentioned that 2 files I want to merge used to be one file (let say "main"), which was separated in 2 parts (let say "part1" which was preprocessed and "part2").</div>



<div>1. 121 ch data (which is main)</div><div><div>2. 120 ch data ( preprocessed part1)</div><div>3. 1 ch data (part2)</div><div><br></div><div>when I run the code you wrote, which is totally clear to me, I am replacing the first 120 elements from file main, with the part1 and 121st element with part2.</div>



<div><br></div><div>But I am constatly getting following:</div><div><div>??? Subscripted assignment dimension mismatch.</div></div><div><br></div><div>I am not sure why...I am using EEGLAB v12.0.1.0b</div><div>I have noticed that when I do the File --> clear dataset(s),  variables in workspace are not cleared (ALLEEG remains 1x3 struct).</div>



<div><br></div><div><br></div><div>Regards, </div><span><font color="#888888"><div><br></div><div>Ida</div></font></span><div><div><div><br></div><div><br></div><br><div class="gmail_quote">On Thu, Mar 7, 2013 at 10:43 PM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Ida,<div><br></div><div><div>> both of my data sets are given in paired files (set1.set; set1.fdt and set2.set; set2.fdt), so what would be the procedure of preparing them in way that I can operate with them in way you suggested?<br>






<br></div>It does not matter whether you have set only or set plus fdt. They are the same. The set file is more like a header (that's why it is light in size).</div><div><br></div><div>First you load three datasets.</div>




<div>

1. 121 ch data</div><div>2. 120 ch data</div><div>3. 1 ch data</div><div><br></div><div>Then run this (select these lines and press F9)</div><div>ALLEEG(1,1).data(1:120,:) = ALLEEG(1,2).data;</div><div>ALLEEG(1,1).data(121,:) = ALLEEG(1,3).data;</div>






<div>Then select dataset 1.</div><span><font color="#888888"><div><br></div><div>Makoto</div></font></span><div><div><div><br></div><div><br><div class="gmail_quote">2013/3/7 ida miokovic <span dir="ltr"><<a href="mailto:ida.miokovic@gmail.com" target="_blank">ida.miokovic@gmail.com</a>></span><br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Makoto,<div><br></div><div>both of my data sets are given in paired files (set1.set; set1.fdt and set2.set; set2.fdt), so what would be the procedure of preparing them in way that I can operate with them in way you suggested?</div>







<div><br></div><div>I tried loading first data set into eeglab, and the put its values into one variable:</div><div>>> variable.data(1:120,:)=EEG.data(1:120,:);</div><div>Then I loaded second data set into eeglab and put its values into the same variable:</div>







<div>>> variable.data(121,:)=EEG.data(121,:);</div><div>onto 121st position (variable and EEGs are in struct format)</div><div>Then I saved variable with save ('variable'), and then changed its format from .mat to .set.</div>







<div><br></div><div>When loading variable.set into matlab I obtain only second data set (1 channel)...I am obviously missing something, though your procedure is 100% clear to me.</div><div><br></div><div>Thank you very much</div>






<span><font color="#888888">
<div><br></div><div>Ida</div></font></span><div><div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Mar 7, 2013 at 6:35 PM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Ida,<div><br></div><div>1. prepare 121ch data that has the same data length of your original</div><div>2. EEG.data(1:120,:) = your first 120ch data</div>







<div>3. EEG.data(121,:) = your additional 1ch data</div><div>4. save current dataset as...</div>

<div><br></div><div>Makoto</div><div><br><div class="gmail_quote">2013/3/6 ida miokovic <span dir="ltr"><<a href="mailto:ida.miokovic@gmail.com" target="_blank">ida.miokovic@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div><div>

Dear list,<div><br></div><div>Is there a function to merge data (.set) in EEGLAB but not one after another (I understood that pop_mergeset does that). Actually my each .set file has its corresponding .fdt file, so it was unsuccessful attempt to convert ".sets" into ".mats" and then put the one under another.</div>










<div><br></div><div>I have a group of channels in one .set file (for example 120 channels) and another .set file that consists only from one channel. I would like to obtain one .set file with 121 channels which are 120 from the first .set file and 121st channel from the second .set file. Is there possibility to do this? They use to be in one file (they have same number of frames per epoch, markers, etc), now I did some work with the first set and want to join them together again.</div>










<div><br></div><div>I appreciate any help.</div><div><br></div><div>Cheers,</div><div><br></div><div>Ida</div>
<br></div></div>_______________________________________________<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" target="_blank">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" target="_blank">eeglablist-request@sccn.ucsd.edu</a><span><font color="#888888"><br>
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>

-- <br>Makoto Miyakoshi<br>JSPS Postdoctral Fellow for Research Abroad<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Makoto Miyakoshi<br>JSPS Postdoctral Fellow for Research Abroad<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br>







</div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Makoto Miyakoshi<br>JSPS Postdoctral Fellow for Research Abroad<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br>