[Eeglablist] export individual ERP data from study files
A T
angeljtabullo at gmail.com
Wed Feb 19 13:57:13 PST 2020
Hi there!
I need to export individual ERP data from the .daterp study files. I found
a plugin that seems to do just that:
zpf.psychologia.uj.edu.pl/mwexport
But I haven't been able to run it in my data. I get the following error:
Index exceeds matrix dimensions.
Error in export_mw_ele (line 58)
var2dim = size(STUDY.design(1,STUDY.currentdesign).variable(1,2).value,2);
%number of levels for var2
Error in pop_mwexpgui>bt_export_Callback (line 157)
export_mw_ele('erp', winlohi(1), winlohi(2), mintrials,
expfilename, grplabelson, varsuffix, STUDYGLOBALMW);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in pop_mwexpgui (line 43)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)pop_mwexpgui('bt_export_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
I also found the following syntax in a previous question:
*[STUDY erpdata] = std_erpplot(STUDY,ALLEEG, 'topotime',[300 400] ,*
>* 'channels',{'FP1' 'FP2' 'P7' 'P8' 'F7' 'F3' 'Fz' 'F4' 'F8' 'FCz' 'T7' 'C3'
*>* 'Cz' 'C4' 'T8' 'P3' 'Pz' 'P4' 'O1' 'O2' 'Oz'});
*>>* csvwrite('erp1.csv',squeeze(erpdata{1}));
*>* csvwrite('erp2.csv',squeeze(erpdata{2}));
*>* csvwrite('erp3.csv',squeeze(erpdata{3}));
*>* csvwrite('erp4.csv',squeeze(erpdata{4}));*
But need to export participant numbers and channels names as well.
Does anyone know of a way to do it, or an updated version of the plugin?
Thank you so much for your kind attention!
More information about the eeglablist
mailing list