[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.
allfiles=dir('*.set');
for n=1:length(allfiles)
....
end
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
folder.
Makoto
--- 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 =
>
pop_importdata('dataformat','array','data','temp2','srate',200,'pnts',0,'xmin',0,'nbchan',0,
> '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