Dear Ged,
Thank you very much again for your support.
I made changes to spm_select as you suggested. The seperator mark has
changed, but still no files can be seen in the SPM tool box.
Sincerely,
Khin Khin Tha
----- Original Message -----
From: "Ged Ridgway" <[log in to unmask]>
To: "Khin Khin Tha" <[log in to unmask]>
Cc: <[log in to unmask]>
Sent: Monday, June 25, 2007 7:12 PM
Subject: Re: [SPM] Loading files in SPM5
> Hi Khin,
>
>> Thank you very much for your instruction. I tried again as instructed.
>> Every steps went well, except the last.
>
>>> spm_select('list', [spm('Dir') filesep 'templates'], 'T1\.nii')
>>> spm_select('list', [spm('Dir') '¥' 'templates'], 'T1\.nii')
>>> where ¥ is the file path separator you see in your explorer window
>
> It appears SPM must be handling the file-separator incorrectly
> somewhere... my best guess for your original problem of spm_select not
> showing anything, is that spm_select's cpath subfunction is wrong. As a
> wild guess, try changing lines 1112-1113 (as of updates 826), from:
> fs = '\';
> fs1 = '\\';
> to something like:
> fs = filesep;
> fs1 = [filesep filesep];
> assuming that network paths have what looks like a doubled Yen sign,
> similar to the European Windows convention of \ for standard paths and \\
> for network paths.
>
> Hope that helps,
> Ged
>
|