Home > data-access > get_info_file_path.m

get_info_file_path

PURPOSE ^

Finds the path of the ...info.mat file for that subject

SYNOPSIS ^

function [ pathname ] = get_info_file_path( subject_id )

DESCRIPTION ^

Finds the path of the ...info.mat file for that subject
   get_info_file_path(SUBJECT_ID)
       Returns the pathname where the timing info file __DATE_KIDID.mat
       should be stored for that subject.

   For a list of subject_ids, try read_subject_table().

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ pathname ] = get_info_file_path( subject_id )
0002 %Finds the path of the ...info.mat file for that subject
0003 %   get_info_file_path(SUBJECT_ID)
0004 %       Returns the pathname where the timing info file __DATE_KIDID.mat
0005 %       should be stored for that subject.
0006 %
0007 %   For a list of subject_ids, try read_subject_table().
0008 
0009 subject_dir = get_subject_dir(subject_id);
0010 
0011 table = get_subject_info(subject_id);
0012 file = sprintf('__%08d_%04d_info.mat', table(3), table(4));
0013 
0014 pathname = [subject_dir filesep() file];
0015 
0016 end

Generated on Tue 23-May-2017 03:00:58 by m2html © 2005