Home > data-access > get_subject_info.m

get_subject_info

PURPOSE ^

Return the Subj_id, Exper. #, date, and kid_id of a subj.

SYNOPSIS ^

function [ subj_info ] = get_subject_info( sid )

DESCRIPTION ^

Return the Subj_id, Exper. #, date, and kid_id of a subj.
   get_subject_info(SUBJECT_ID)
       Given a subject ID (a small integer, usually 1-100 or so), returns a
       one-row array with the subject ID, the experiment number, the date of
       the subject's experiment (in YYYYMMDD form, as a number), and the
       kid_id of the subject.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ subj_info ] = get_subject_info( sid )
0002 %Return the Subj_id, Exper. #, date, and kid_id of a subj.
0003 %   get_subject_info(SUBJECT_ID)
0004 %       Given a subject ID (a small integer, usually 1-100 or so), returns a
0005 %       one-row array with the subject ID, the experiment number, the date of
0006 %       the subject's experiment (in YYYYMMDD form, as a number), and the
0007 %       kid_id of the subject.
0008 
0009 table = read_subject_table();
0010 
0011 % return only the line of the table that has the first field (the subject
0012 % ID) equal to the search query's subject ID.
0013 subj_info = func_filter(@(subject) subject(1) == sid, table);
0014 
0015 end

Generated on Tue 23-May-2017 02:00:59 by m2html © 2005