Dear Mirko, Alex et.al.
in addition to the regular expression filter, there is also a hidden filter by
extension which is set depending on the type of file specified in a spm_select
call. I.e., if you set the file type to "mat", a filter ".*" will still only
show files with names ending on ".mat", ".MAT".
Volkmar
Zitat von "Hammers, Alexander" <[log in to unmask]>:
> Dear Mirko,
>
>
>
>
>
> Ged explained some of the options in SPM5 in December:
>
> --------------------------------
>
> It has indeed changed, spm_get used shell-style wildcards, spm_select
> uses the more powerful "regular expression" framework, see "help regexp"
> in Matlab.
>
>
>
> Regular expressions can take a bit of getting used to... the Matlab
> documentation is pretty good, but a few quick pointers:
>
>
>
> the . matches any single character (like the shell wildcard "?") whereas
> the * now means 0 or more of the previous match. Regular expressions can
> match anywhere in a string by default, so:
>
>
>
>> test*.img
>
> [...]
>
>> my_test_1.img
>
>> my_test_2.img
>
>
>
> Would actually also match
>
> blah_tesQimg
>
> blah_testttttt,img
>
> etc!
>
>
>
> To match a literal character that has a special meaning in regular
> expressions just backslash escape it, e.g. "\.".
>
>
>
> And to match from the start of the string use "^" as the first character
> (similarly, though less usefully here, a "$" at the end will require the
> string to end with the end of the match, i.e. "blah$" will not match
> "blahdy".
>
>
>
> So the spm_get "test*.img" becomes something like:
>
> "^test.*\.img$" (though the $ is probably not useful)
>
>
>
> And you might prefer something like "^test.*\.(img|nii)$" if you have a
> mix of NIfTI files.
>
> ---------------------------------------
>
> - maybe this helps?
>
>
>
> Good luck, A
>
>
>
> ________________________________
>
> From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]]
> On Behalf Of mirko
> Sent: 14 February 2007 17:04
> To: [log in to unmask]
> Subject: [SPM] SPM5 set up
>
>
>
> Dear All,
>
> I am trying to migrate from SPM2 to SPM5 (version downloaded few days
> ago with the latest update), but I ran into problem in "seeing" my
> "*.img" files with SPM5. Regardless which operation I select and have
> "filter" ".*" I "see" only "*.mat" files. Where I need to change setup?
>
> Many thanks,
>
> Mirko.
>
> --
>
>
>
> Professor Mirko Diksic, PhD
>
> Director, Cyclotron-Radiochemistry Unit,
>
> Department of Neurology and Neurosurgery
>
> McGill University
>
> 3801 University St.
>
> Montreal, QC H3A 2B4
>
> Canada
>
> Tel.: (1)-514-398-8526;
>
> Fax: (1)-514-398-8195
>
>
> Disclaimer: This message contains privileged confidential information
> which is
> not to be disclosed. If you are not the intended recipient of this
> message
> please contact the sender and destroy this message as well as all
> existing
> copies and attachments.
>
>
>
>
|