Hi Ray,
> Step 3: Make a new directory identifying that experiment. Copy all
> 50 smoothed grey matter images in.
I can help with the copying problem...
Instead of copying all the images to a new directory, you could make symbolic links. If you're on a linux system, you could just do something like this to make links to your images:
spm_defaults;
global defaults
V = spm_vol(spm_get);
newdir = uigetdir;
for i=1:length(V)
[pth,nam,ext] = fileparts(V(i).fname);
img = fullfile(pth,nam,ext);
hdr = fullfile(pth,nam,'.hdr');
mat = fullfile(pth,nam,'.mat');
system(['ln -s ',img,' ',newdir]);
system(['ln -s ',hdr,' ',newdir]);
if exist(mat,'file)
% The mat files may or may not exist.
system(['ln -s ',mat, ' ',newdir]);
end
end
I hope this helps,
Matt Senjem
|