I am trying to find a script that will read the .txt files exported from e-prime and convert them into onset vectors in matlab. Below is the only script that I have found that is suppose to do this. Any one else have additional comments or other scripts?
[colNames,colValues] = textread('PATH_TO_YOUR_EPRIME_TEXTFILE','%s%s');
index = strmatch('YOUR_COLUMN_FILTER',deblank(colNames),'exact');
% 'YOUR_COLUMN_FILTER' is the attribute name in the left column, eg,'Slide1.OnsetTime:'
vectors = str2double(colValues(index));
%Now vectors is a vector of your vectors ; )
Take care,
Nathan
|