just as a note for the spm5 developers:
I recently worked around these peculiarities in my recent spm5 addons,
as did many others I assume. When the default functioning of spm_select
would change in future updates, many people would have to redo all their
addons for each update, which would be undesirable. So when included in
the updates I suggested that the default input-output syntax of
spm_select is unchanged, and by using varargin, additional and useful
options such as the ones provided in this thread would be possible.
just my 2 cts...
keep on the good work,
Bas
Thomas Stephan schreef:
> Hi Ged,
>
> your version does exactly what we need. Thank you very much for the code!
> Here is my vote to put this into the next update.
>
> Best,
> Thomas
>
> Dr. Thomas Stephan
> Abteilung fuer funktionelle, strukturelle und molekulare Bildgebung
> Zentrum fuer Sensomotorik
> Klinikum Grosshadern der Universitaet Muenchen Marchioninistr. 23
> 81377 Muenchen
>
> [log in to unmask]
> +49 089 / 7095-4819 (Fon)
> +49 089 / 7095-4801 (Fax)
>
>
>
> Ged Ridgway schrieb:
>> Hi Thomas,
>>
>>> [...] spm_select does not append the frame information at the
>>> end of the filenames (e.g. ',1' for 3D files, ',n' for 4D files).
>>
>> I found this too (with updates 826). Try the version of spm_select
>> that I've put here:
>> http://www.cs.ucl.ac.uk/staff/gridgway/vbm/spm_select.m
>> with the additional 'ExtList' option. (you might want to save this as
>> spm_select_mod.m or similar, or at least, back up your original.)
>>
>> I've also added FPList and ExtFPList options to add the full path, as
>> has been complained about on the list before.
>>
>> It's not thoroughly tested, but:
>> [files dirs] = spm_select('ExtList', direc, 'blah', 3:5)
>> [files dirs] = spm_select('ExtFPList', direc, 'blah', 3:5)
>> both do what I expect them to on an example directory.
>>
>> Let me know of any problems you find. Hopefully something similar to
>> this version can make it into the official release...
>>
>> Best,
>> Ged.
>>
>>
--
-------------------------------------------------
Dr. S.F.W. Neggers
Division of Brain Research
Rudolf Magnus Institute for Neuroscience
Utrecht University Medical Center
Visiting : Heidelberglaan 100, 3584 CX Utrecht
Room B.01.1.03
Mail : Huispost A.01.126, P.O. Box 85500
3508 GA Utrecht, the Netherlands
Tel : +31 (0)30 2509609 Fax : +31 (0)30 2505443
E-mail : [log in to unmask]
Web : http://www.fmri.nl/people/bas.html
--------------------------------------------------
|