git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
ea0c5c0
Branches
Tags
master
SVMCrossVal.git
private
parseClassDef.m
new parseVoxelTxtField getImageFileList reads files according to gui-settings voxel to subject coordinate mapping missing.
Christoph Budziszewski
commited
ea0c5c0
at 2009-02-16 17:32:42
parseClassDef.m
Blame
History
Raw
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! outstruct.eventMatrix = []; for i = 1:nClasses line = txt(i,:); [label rem] = strtok(line,','); outstruct.labelCells{i} = strtrim(label); conds = eval(strtrim(rem(2:end))); outstruct.conditionCells{i} = conds; outstruct.eventMatrix = [outstruct.eventMatrix ; conds]; end end