<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><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 style="position:fixed"></div>


</div><br>

      </body></html>