[Eeglablist] browse eeglab codes

Arnaud Delorme arno at ucsd.edu
Thu Jul 23 20:31:08 PDT 2009


Dear iuri,

EEGLAB will only open Matlab files that contain a single variable  
inside them containing the data.
In your case, it seems you are dealing with a BIOSIG structure so just  
type

EEG = biosig2eeglab(HDR, HDR.data);
[ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG);
eeglab redraw;

Hope this helps,

Arno

On Jul 23, 2009, at 6:35 PM, iuri de araujo sampaio wrote:

> hi rania,
>
> really? why do i get this message error then:
>
> I am aware about eeglab matlab workspace
> I believe the problem is the format of the .mat file does not match  
> with
> the one supported by eeglab library.
> I tried to debug the code and write a solution, however i couldn't
> figure out where was the file.
>
> I attached an image about the error message i got.
>
> do you know how i convert it in a .gdf file?
>
> right bellow it is the file structure information about the .mat  
> file i
> want to open
>
> :-)
> cheers
> iuri
>
> %%
> HDR =
>
>      FileName: 'S1.mat'
>          FILE: [1x1 struct]
>          TYPE: 'MAT5'
>         ERROR: [1x1 struct]
>       keycode: [1x34 double]
>     Endianity: 'ieee-be'
>            NS: 10
>    SampleRate: 400
>            T0: [NaN NaN NaN NaN NaN NaN]
>        Filter: [1x1 struct]
>          FLAG: [1x1 struct]
>         EVENT: [1x1 struct]
>         Label: {1x10 cell}
>          data: [234x400x10 double]
>           SPR: 400
>    Classlabel: [234x1 double]
>          TRIG: [1x234 double]
>
>
>
>
>
>
> rania mahdi wrote:
>>
>> hello Mr. Iuri
>>
>> EEGLAB can read .mat file,firstly you may load it in matlab workspace
>> window then from EEGLAB window select file > import data>from
>> ASCII/float file or matlab array then write the name of your file as
>> variable name.
>> wish you good luck
>> Rania
>>
>>> Date: Wed, 22 Jul 2009 07:38:11 -0300
>>> From: iuri.sampaio at gmail.com
>>> To: eeglablist at sccn.ucsd.edu
>>> Subject: [Eeglablist] browse eeglab codes
>>>
>>> Hi there,
>>>
>>> I downloaded eeglab 7.02.5b and i started reading the library.
>>>
>>> I am looking for algorithm samples in eeglab to read .mat files and
>>> convert it to .gdf files?
>>>
>>> what would be the .m file that has the code to this example or
>> something
>>> similar to it?
>>>
>>> regards,
>>> iuri
>>> _______________________________________________
>>> 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
>>
>> ------------------------------------------------------------------------
>> What can you do with the new Windows Live? Find out
>> <http://www.microsoft.com/windows/windowslive/default.aspx>
>
> <eegopenmaterror.jpg><ATT00001.txt>




More information about the eeglablist mailing list