Home > . > prt_get_filename.m

prt_get_filename

PURPOSE ^

out = prt_get_filename(ids)

SYNOPSIS ^

function out = prt_get_filename(ids)

DESCRIPTION ^

 out = prt_get_filename(ids)
 
__________________________________________________________________________
 Copyright (C) 2011 Machine Learning & Neuroimaging Laboratory

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function out = prt_get_filename(ids)
0002 
0003 % out = prt_get_filename(ids)
0004 %
0005 %__________________________________________________________________________
0006 % Copyright (C) 2011 Machine Learning & Neuroimaging Laboratory
0007 
0008 % Written by A. Marquand
0009 % $Id: prt_get_filename.m 367 2011-11-12 15:03:24Z cphillip $
0010 
0011 % Obs: Names return to the simple form: e.g. 'g1_s1_m1_c1'
0012 
0013 try
0014     group_prefix = ['g' int2str(ids(1)) '_'];
0015 catch
0016     group_prefix = '';
0017 end
0018 
0019 try
0020     subj_prefix = ['s' int2str(ids(2)) '_'];
0021 catch
0022     subj_prefix = '';
0023 end
0024 
0025 try
0026     mod_prefix = ['m' int2str(ids(3))];
0027 catch
0028     mod_prefix = '';
0029 end
0030 
0031 try
0032     cond_prefix = ['_c' int2str(ids(4))];
0033 catch
0034     cond_prefix = '';
0035 end
0036 
0037 out = ['PRT_' group_prefix subj_prefix mod_prefix cond_prefix];

Generated on Sun 20-May-2012 13:24:48 by m2html © 2005