Hi,
Marko Wilke wrote:
> Hi In,
>
>> I want to convert 20 images into matlab marix data X.
>> The rows of the X are image data from the number of subjects in the
>> study and the columns are measurements recorded at different voxels.
>> I got an error messages.
>
>
> this is because you try to read them all in one go. If you want to do
> something to them sequentially, the easiest way is to do
Actually, if you do something like:
##################################################
>> fnames=spm_get;
>> V=spm_vol(fnames);
>> v4D=spm_read_vols(V);
##################################################
your v4D will be a 4D array of volumes (with the 4th dimension the
volume index). as spm_read_vols was built for speed, this may be your
best option.
best,
Alle Meije
|