I've generally had to place the ^ symbol (start matching at front of
string) in front. When searching for the same mat files I use
"^.*seg_sn.mat$".
Ben
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]]
On Behalf Of Lorelei Howard
Sent: Thursday, September 24, 2009 6:43 AM
To: [log in to unmask]
Subject: Re: [SPM] Filter problem with spm_select
So....I tried that suggestion (thanks Chris) and still no joy...I just
can't see why it's not working. Any other suggestions?
Cheers,
Lorelei
> Try using ".*_seg_sn\.mat$" instead (the change is the \ before the
.mat).
>
>
> Lorelei Howard wrote:
>> Hi,
>>
>> I have written the attached .m file to batch together my structural
>> normalisation. I am having an issue with line 44:
>>
>> param=spm_select('ExtFPList',[structuralpath filesep
>> subject_func{s}],'.*_seg_sn.mat$');
>>
>> ...for some reason this filter does not select any files (let alone
>> the correct one), whereas when i use it in the GUI it does work which
>> I find bizarre. Can anyone help to explain why this may be? And how I
>> can get the correct file selected?
>>
>> Many Thanks,
>> Lorelei
>>
>>
>>
>>
>
--
Lorelei Howard
Ph.D. Student
Institute of Behavioural Neuroscience
Cognitive, Perceptual and Brain Sciences Department University College
London
26 Bedford Way
WC1H 0AP
+44 (0)20 7679 8553
|