ndi.setup.conv.vhlab.treatmentTable
TREATMENTTABLE - Creates a table of experimental treatments for an NDI session.
T = TREATMENTTABLE(S)
Creates a table with variables 'treatment', 'stringValue', 'numericValue',
'subjectIdentifier', and 'sessionPath'. The table will contain multiple rows,
one for each treatment type.
This function performs the following steps:
1. Calculates the duration of grating stimulation from 'grating_training_run*.mat' files.
2. Reads the date of birth from 'dob.txt'.
3. Extracts the experiment date from the session directory name.
4. Reads the subject identifier from 'subject.txt'.
It takes an ndi.session.dir object 'S' as input.
Example:
% Assuming 'mySession' is a valid ndi.session.dir object
mySession = ndi.session.dir('/path/to/my/2018-07-01');
treat_table = treatmentTable(mySession);
disp(treat_table);