[Eeglablist] Importing segmented matlab data

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Fri Aug 9 09:35:18 PDT 2013


Dear Heracles,

> If so, then do you  think  it is possible to create one file with all
conditions in EEGLAB?

Yes it's possible. You have to manually specify the conditions using the
following method.
After you import 3D Matlab variable, also try 'import epoch info'. It seems
you have to generate ascii/some Matlab variable to specify at least latency
and duration in each column. I've never used it for 3D array, but I did
import 2D array. At that time I prepared a text file contains

type condition latency
stimulus S3 5.31
response R1 5.89
stimulus S4 7.72
response R2 8.55 ...

So there were three columns and each of them had a header (type, condition,
latency) and in each column I had trial name, corresponding condition, and
latency in second. I guess you need to prepare similar file/variable.

If you have any trouble let me know.

Makoto



2013/8/7 HERACLES PANAGIOTIDES <hercp at uw.edu>

> I can import segmented data (3D).  By the way, these are intracranial data
> that I collected with a non-standard system.  That is why I have the data
> segmented and ready to be imported.
>
> I am a new EEGLAB user.  Are "events" the same as conditions or
> categories?  If so, then do you  think  it is possible to create one file
> with all conditions in EEGLAB?  If not, what other method do you recommend?
>
> Heracles
>
>  my iPad
>
> On Aug 7, 2013, at 9:34 AM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu> wrote:
>
> I don't think there is such import option to separately import the data.
> Therefore users should separate raw data first and import it as required. I
> don't even know if it allows to import 3D data (it may), but let's say the
> basic import option is 2D. Which means you have to preprocess your matlab
> 3D variables into EEGLAB importable 2D chunks.
>
> Makoto
>
>
> 2013/8/6 HERACLES PANAGIOTIDES <hercp at uw.edu>
>
>>   Dear Makoto,
>>
>> I tried the first method and gave each category a different variable
>> name.  Each category had three dimensions.  All categories were included in
>> the same mat file.  When I tried to import the data, EEGLAB gave me an
>> error.  I am not sure what the menu commands are for importing separate
>> data files.  These data are from one patient.  Any thoughts?
>>
>> Heracles
>>
>>
>>
>>  *From:* Makoto Miyakoshi <mmiyakoshi at ucsd.edu>
>> *Sent:* Tuesday, August 06, 2013 7:53 PM
>> *To:* HERACLES PANAGIOTIDES <hercp at uw.edu>
>> *Cc:* EEGLAB List <eeglablist at sccn.ucsd.edu>
>> *Subject:* Re: [Eeglablist] Importing segmented matlab data
>>
>>  Dear Heracles,
>>
>> I suggest you reshape the data from 4D to 3D (see matlab help 'reshape')
>> and give trials label of category. Alternatively, if you don't want to mix
>> them in one dataset, I suggest you separate categories such that
>> category1: channel x point x trials
>> category2: channel x point x trials
>> category3: channel x point x trials
>> and you'll have 3 different data sets (by the way does EEGLAB allow to
>> import 3D data?) However, if this 'category' is within-subject condition
>> and recorded at the same session (i.e. without taking off the EEG cap) I
>> recommend the first solution because it is better for running ICA.
>>
>> Makoto
>>
>>
>>
>> 2013/8/5 HERACLES PANAGIOTIDES <hercp at uw.edu>
>>
>>>   I have an array of segmented ERP data consisting of 4 dimensions
>>> (channels X points X trials X categories).  I don’t know how to define
>>> categories.  When I import the array into eeglab it concatenates all the
>>> trials from all categories into one set of trials.
>>>
>>> Thanks,
>>>
>>> Heracles Panagiotides
>>>
>>> _______________________________________________
>>> 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
>>
>
>
>
> --
> Makoto Miyakoshi
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, University of California San Diego
>
>


-- 
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/20130809/bc93f56c/attachment.html>


More information about the eeglablist mailing list