Close image volume - for SPM2 / SPM99 compatibility See: spm_create_vol and spm_write_plane. SPM99 seems to use spm_create_image to close volumes $Id$
0001 function Vo = spm_close_vol(Vi) 0002 % Close image volume - for SPM2 / SPM99 compatibility 0003 % See: spm_create_vol and spm_write_plane. 0004 % 0005 % SPM99 seems to use spm_create_image to close volumes 0006 % 0007 % $Id$ 0008 0009 for i=1:prod(size(Vi)), 0010 Vo(i) = spm_create_image(Vi(i)); 0011 end