0001 function out = prt_get_filename(ids)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
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];