[Eeglablist] How to save individual epochs?

arno arno at salk.edu
Thu Apr 20 09:32:53 PDT 2006


This is probably because you are using Matlab 7.0 or alike and that it 
does not want to save single precision number. The correct code is then

epoch3 = double(EEG.data(:,:,3));
save -ascii epoch3.txt epoch3

Arno

Paul Rigor wrote:
> Hi,
> I tried the save command, however, matlab throws the following error message:
>
> Warning: Attempt to write an unsupported data type to an ASCII file.
> 	Variable 'epoch_test' not written to file.
>
> The size of the variable is 253x454214
>
> Does anyone have any suggestions?
>
> Thanks,
> Paul
>
> On 3/30/06, arno <arno at salk.edu> wrote:
>   
>>  You may save data epochs from the command line using
>>
>>  epoch3 = EEG.data(:,:,3);
>>  save -ascii epoch3.txt epoch3
>>
>>  Best,
>>
>>  Arno
>>
>>  Andersen S.B. wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>> Is there anyway to save individual epochs in an ascii format (later to be
>> used in Loreta)?
>>
>>
>>
>> Best wishes,
>>
>>
>>
>> Soren
>>
>>     




More information about the eeglablist mailing list