[Eeglablist] Problems with Importing data in EEGLAB

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Fri Aug 7 16:32:14 PDT 2015


Dear Ahmed,

The code is to produce Matlab variables, so if you want to save them, type
'help save' in matlab command line to confirm the syntax.

> Furthermore, if I want to analyse the data from specific 18 channels only
shall I write the code as follows:
[spectra,freqs] = spectopo(EEG.data(1, 18,:), 0, EEG.srate)?

Must be EEG.data(1:18,:) to choose the range of channels from 1 to 18.

Makoto

On Wed, Aug 5, 2015 at 10:57 PM, AHMED DAHIR MOHAMED <
Ahmed.Mohamed at nottingham.edu.my> wrote:

> Hi All,
>
> Hope this email reaches you well. I am trying to save the data from
> specific EEG frequencies for each participant so that I can analyse the
> data off-line. My data was acquired with the 128-channel HCGSN Net station.
> I am using the below code which is functioning OK.
>
> %%%%%%%%%%%%%%%%%%%
>
> % for your epoched data, channel 2
>
> [spectra,freqs] = spectopo(EEG.data(2,:,:), 0, EEG.srate);
>
> % delta=1-4, theta=4-8, alpha=8-13, beta=13-30, gamma=30-80
>
> deltaIdx = find(freqs>1 & freqs<4);
>
> thetaIdx = find(freqs>4 & freqs<8);
>
> alphaIdx = find(freqs>8 & freqs<13);
>
> betaIdx  = find(freqs>13 & freqs<30);
>
> gammaIdx = find(freqs>30 & freqs<80);
>
>
>
> % compute absolute power
>
> deltaPower = 10^(mean(spectra(deltaIdx))/10);
>
> thetaPower = 10^(mean(spectra(thetaIdx))/10);
>
> alphaPower = 10^(mean(spectra(alphaIdx))/10);
>
> betaPower  = 10^(mean(spectra(betaIdx))/10);
>
> gammaPower = 10^(mean(spectra(gammaIdx))/10);
>
> %%%%%%%%%%%%%%%%%
>
>
>
>
>
> But when I try to save the data I get the below error even though the file
> is accurately loaded in the EEGlab gui:
>
> %%%%%%%%%%%%%%%%%
>
> Error using finfo (line 27)
>
> File 'G:\eeglab\eyesclosed48' not found.
>
> Error in uiimport>useAlternateImportTool (line 927)
>
>     type = finfo(fn);
>
> Error in uiimport (line 150)
>
>     if
> useAlternateImportTool(isSynchronous,fileAbsolutePath,useLegacyModeForCSV)
>
>
>
> Error in filemenufcn (line 61)
>
>         uiimport('-file')
>
>
>
> Error while evaluating uimenu Callback
>
> %%%%%%%%%%%%%%%%%
>
> My questions are:
>
> How can solve the above error? How can I save each frequency data
> separately (Delta, Gamma, so on) for each participant for all channels?
> Furthermore, if I want to analyse the data from specific 18 channels only
> shall I write the code as follows:
>
> [spectra,freqs] = spectopo(EEG.data(1, 18,:), 0, EEG.srate)?
>
> I need the raw data so that I can analyse the data off-line so any help
> will be appreciated.
>
> Thanks and best wishes,
>
> Ahmedje
>
>
>
>
>
>
>
>
>
> -------------------------------------------------------
>
> Dr. Ahmed Dahir Mohamed, PhD (Cantab) CPsychol
>
> Post-Doctoral Fellow in Psychology
>
> Cognitive and Affective Neuroscience
>
> School of Psychology, Faculty of Science,
>
> The University of Nottingham Malaysia Campus
>
> Jalan Broga, 43500 Semenyih
>
> Selangor Darul Ehsan
>
> Malaysia
>
> Email:
>
> http://www.nottingham.edu.my/Psychology/People/ahmed.
> <http://www.nottingham.edu.my/Psychology/People/ahmed.mohamed>
>
>
>
> Current research
>
> *http://preview.tinyurl.com/mjyamv5 <http://preview.tinyurl.com/mjyamv5>*
>
>
> << This message and any attachment are intended solely for the addressee
> and may contain confidential information. If you have received this message
> in error, please send it back to me, and immediately delete it. Please do
> not use, copy or disclose the information contained in this message or in
> any attachment. Any views or opinions expressed by the author of this email
> do not necessarily reflect the views of the University of Nottingham. This
> message has been checked for viruses but the contents of an attachment may
> still contain software viruses which could damage your computer system: you
> are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK & Malaysia
> legislation. >>
>
> _______________________________________________
> 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
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20150807/a1dd1acb/attachment.html>


More information about the eeglablist mailing list