In your script you can put something like:
data = spm_select('List','/path/to/files','^swarfm.+\.img')
The variable "data" will be a character array.
Sien Hu wrote:
> Dear SPMers,
>
> I would like to write a script to specify the 1st level analysis and am
> wondering if there is any easy way to load all 'swarfm*.img' files. Does SPM
> has any built in functions that allow me to load these images or do I have to
> write my own script to do that?
>
> Many thanks!
>
> Sien
>
>
|