the following might (!) work for the pattern "rep1" at the end of the
filenames:
P=spm_select('List',pwd,'^.*rep1$')
or
P=spm_select('List',pwd,'^.*rep1\.img$')
if the "rep1" is followed by the extension ".img".
Thilo
On Thursday 02 October 2008 16:31, Yune Lee wrote:
> Dear SPMers,
>
> I'm wondering if there is any way to filter the image file by last name,
> not the first name.
> So, I have files such as A_rep1, A_rep2, A_repmean, B_rep1, B_rep2,
> B_repmean. and I want to sort out rep1 group, rep2 group, and repmean
> group.
>
> Does anybody know how to do it in SPM5?
> Your help would be greatly appreciated.
>
> Best,
> YSL
--
Thilo Kellermann
Department of Psychiatry and Psychotherapy
RWTH Aachen University
Pauwelsstr. 30
52074 Aachen
Tel.: +49 (0)241 / 8089977
Fax.: +49 (0)241 / 8082401
E-Mail: [log in to unmask]
|