ctf_read_classfile

ctf_read_classfile - function class =...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
function class = ctf_read_classfile(ctf,clsFile); % class = ctf_read_classfile(ctf,clsFile); % % This function reads the ClassFile.cls created by CTF preprocessing % software. % % ctf - a struct returned by ctf_read, it contains ctf.folder, which is a % .ds path where a ClassFile.cls can be read; eg: % ctf = ctf_read % ctf.class = ctf_read_classfile(ctf) % % clsFile - this can be used to override the default behavior of reading % *.ds/ClassFile.cls, it should be a complete path to a .cls file; eg: % ctf.class = ctf_read_classfile([],clsFile) % ctf.class = ctf_read_classfile([],'/<completepath>/ClassFile.cls') % % It returns a class struct, eg: % % class.path: '/data/dnl3/HighN_cuebase/allTrialData/CJ_HiN_alltrials.ds' % class.number: 4 % class.data: {[1x1 struct] [1x1 struct] [1x1 struct] [1x1 struct]} % % where class.data is a 1xN struct array, eg: % % >> class.data(1) % % ans = % % classgroupid: 3 % name: 'EYEBLINKa' % comment: [1x63 char] % color: '' % editable: 'Yes' % classid: 2 % Ntrials: 67 % trials: [1x67 double] % % To get all the class names, % [classNames{1:class.number}] = deal(class.data.name); % classNames = {ctf.class.data(:).name}; % % To scan all the class names, use strmatch, eg: % strmatch('BAD',{ctf.class.data(:).name}); % % Note that the class.data(n).trials contains numbers beginning with 1, % whereas the CTF datafile has values beginning with 0 (this is based on % differences in array indexing between c/c++ and matlab). % % <>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> % < > % < DISCLAIMER:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/07/2010 for the course ENG 42336 taught by Professor Thomasholland during the Spring '10 term at UC Davis.

Page1 / 5

ctf_read_classfile - function class =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online