[Eeglablist] variables as arguments in pop_importdata()

Makoto Miyakoshi mataothefifth at yahoo.co.jp
Sun Apr 18 20:19:52 PDT 2010

Dear Nick,

I wonder if you want something like this.

for n=1:length(allfiles)

During the loop, allfiles(n).name picks up each setfile name in the current
folder. Be sure that you have only necessary setfiles in the current


--- Nick Bedo <nickbedo at yahoo.com> wrote:

> Hi all,
> 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:
>     EEG =
> 'setname', 'currfile');
> 'currfile' is the name that I want to change with each iteration of
> the loop.  Any and all contributions are appreciated.
> Thanks,
> Nick
>       > _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
eeglablist-request at sccn.ucsd.edu

More information about the eeglablist mailing list