[Eeglablist] FW: script to batch process multiple Neuroscan CNT files
Cedric Cannard
ccannard at protonmail.com
Sun Mar 12 12:12:33 PDT 2023
Hi Jeff,
After installing the Neuroscanio plugin, this should do:
dataFolder = 'pathToYourDataFolder';
cd(dataFolder )
filenames = dir('*.cnt');
filenames = {filenames.name};
eeglab; close;
for iFile = 1:length(filenames)
filename = filenames{iFile};
EEG = pop_loadcnt(fullfile(dataFolder, filename, 'dataformat', 'auto', 'memmapfile', '');
EEG = pop_saveset(EEG,'filename',[filename(1:end-5) '.set'],'filepath',dataFolder);
end
disp('Done!')
Cedric
------- Original Message -------
On Friday, March 10th, 2023 at 10:04 AM, Jeffrey Eriksen <jeriksen at downeurobiology.org> wrote:
> Hello,
>
> I have 327 Neuroscan CNT files. Does anyone know of a script that I could use or modify to do the following:
>
>
> 1. Scan a set of folders and find all the CNT files
> 2. Import them using the neuroscanio plugin
> 3. Save them as SET format
>
> Thanks,
> -Jeff Eriksen
>
> ________________________________
> IMPORTANT NOTICE: This communication, including any attachment, contains important information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should contact the sender and delete this message. Any unauthorized disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature.
> _______________________________________________
> 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