Home > data-access > has_all_variables.m

has_all_variables

PURPOSE ^

SYNOPSIS ^

function l = has_all_variables(subID, varNames)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function l = has_all_variables(subID, varNames)        
0002 if ~ischar(subID)
0003     subpath = [get_subject_dir(subID) filesep() 'derived' filesep()];
0004 else
0005     subpath = subID;
0006 end
0007 l = false;
0008 for v = 1:numel(varNames)
0009     fn = [subpath varNames{v} '.mat'];
0010     if ~exist(fn, 'file')
0011         return
0012     end
0013 end
0014 l = true;
0015 
0016 end

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