private/parseClassDef.m
c1c9c7d7
 function outstruct = parseClassDef(model)
 outstruct = struct;
 txt = get(model.txtClassDef,'String');
 
 % txt =txt(find(all(isspace(txt(i,:))) ???
 
 nClasses = size(txt,1); % clear empty lines!
 
6985c69e
 outstruct.eventMatrix = [];
c1c9c7d7
 
 for i = 1:nClasses
     line = txt(i,:);
ea0c5c02
     
     [label rem] = strtok(line,',');
     
     outstruct.labelCells{i} = strtrim(label);
     
     conds = eval(strtrim(rem(2:end)));
     outstruct.conditionCells{i} = conds;
     outstruct.eventMatrix   = [outstruct.eventMatrix ; conds];
c1c9c7d7
 end
 
 end