Dear Nick<br><br>According to my opinion it is better to use a numeric system to name your datasets if you want to automatically insert them into EEGLAB. Suppose that we have 10 datasets name 1.set,...10.set then with the next code you can insert them in a loop<br>
<br>for i=1:10<br>    tic<br>    a=int2str(i)<br>    eeglab<br>    filename=[a '.set'];<br>    EEG = pop_loadset('filename', filename,'filepath','C:\...)<br>    eeglab redraw<br><br>    (continue code...and do whatever you want)<br>
end;<br><br>On the other hand if you dont want, or if you cant change the names of your variables you can make a structure or a character array...but you have to search for this further in Matlab's help<br><br>I hope to helped you<br>
<br>Best Regards<br>Manousos<br><br><div class="gmail_quote">2010/4/15 Nick Bedo <span dir="ltr"><<a href="mailto:nickbedo@yahoo.com">nickbedo@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div></div><div>Hi all,</div><div><br></div><div>I'm importing data as part of a loop, and I'm trying to automate certain parameters of the pop_importdata() function.  Specifically, I'm trying to add a variable as an input argument, but I can't seem to figure it out.  Here is the line of code that I'm working on:</div>
<div><br></div><div>    EEG = pop_importdata('dataformat','array','data','temp2','srate',200,'pnts',0,'xmin',0,'nbchan',0, 'setname', 'currfile');</div>
<div><br></div><div>'currfile' is the name that I want to change with each iteration of the loop.  Any and all contributions are appreciated.</div><div><br></div><div>Thanks,</div><div>Nick</div><div></div>


</div><br>

      </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"><br>-- <br>Manousos A. Klados<br>
PhD Candidate -- Research Assistant<br>Group of Applied Neurosciences<br>Lab of Medical Informatics<br>School of Medicine<br>Aristotle University of Thessaloniki<br>P.O. Box 323 54124 Thessaloniki Greece<br>_________________________________________________<br>
Tel: +30-2310-999332<br>Fax:+30-2310-999263<br>Website: <a href="http://lomiweb.med.auth.gr/gan/mklados">http://lomiweb.med.auth.gr/gan/mklados</a><br><br>________________________________________________________________<br>
Δρώ γιατί Αντιδρώ: Δεν τυπώνω αυτό το mail γιατί προστατεύω το περιβάλλον.<br>Acting by Reacting: By not printing this e-mail I help protect the environment.<br>________________________________________________________________<br>

<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>