Hi,
If you have bash (the standard Linux shell) then this is really quite
easy. After you have done your first smoothing (with 4mm), you type
for f in s*.img; do mv $f s04${f:1}; done
(to do all the *mat *img and *hdr at once you might risk: for f in
s*; do mv $f s04${f:1}; done )
And the same for 08 and 12 mm. The string ${f:1} means: the filename f,
starting at character index 1 (the second character).
Without bash, things like this are quite tricky. The only way to do this
in Windows is manually I guess!. Modifying the SPM code is at your own
risk though...
best,
Alle Meije
Christian Matthiä wrote:
> Hi Keith,
> i didnt try it, but i think it should work if u change in
> spm_config_smooth.m line 78 from:
> U = fullfile(pth,['s' nam xt nm]);
> to:
> U = fullfile(pth,['s' num2str(s(1)) nam xt nm]);
>
> Hope that helps,
> Christian
>
> On Thu, 12 Oct 2006 09:14:03 -0400, Keith Harenski
> <[log in to unmask]> wrote:
>
>
>> Hello,
>> I would like to smooth some images at various widths and was wondering if there was a way to change the output names of these files to coincide with their respective kernel smoothing width (e.g. s4, s8, s12) as opposed to just appending the 's' to the filename?
>>
>> Thanks in advance,
>>
>> Keith
>>
>> --
>> Keith Harenski
>> Dept. of Psychiatry
>> (p) 203-974-7359
>> (f) 203-974-7076
>>
|