Dear Yune, did you check that the paths in image_filenames are correct? And if there are none, you might have the change into the directory of the wrbold images, so that spm_get_data can find the files without any path information. Cheers, Jan Yune Lee wrote: > > Dear SPM5 experts, > I encountered an error message as following for the spm_get_data function. > spm_get_data was working fine using spm2, but for some reason, it is > unable to find files using spm5. > So, these_time_courses = spm_get_data(image_filenames,XYZ); the > variable image_filenames contains 925 wrbold image files and > XYZ has 43891 voxel coordinates. Can anyone help me with it? > > Thanks, > YSL > > > * - SPM5: spm_vol ------------------------------------------------- > > Unable to find file: > wrbold1_0001.img > > Please check that it exists. > > ----------------------------------------- 22:52:50 - 06/08/2008 > > ??? Error using ==> spm_vol>subfunc at 114 > File "wrbold1_0001.img" does not exist. > > Error in ==> spm_vol>subfunc1 at 87 > v = subfunc(P(i,:)); > > Error in ==> spm_vol>subfunc2 at 73 > V = subfunc1(P); > > Error in ==> spm_vol at 57 > V = subfunc2(P); > > Error in ==> spm_get_data at 21 > V = spm_vol(V); > > Error in ==> extract_tc_per_run at 27 > these_time_courses = spm_get_data(image_filenames,XYZ); > -- Jan Gläscher, Ph.D. Div. Humanities & Social Sciences +1 (626) 395-3898 (office) Caltech, Broad Center, M/C 114-96 +1 (626) 395-2000 (fax) 1200 E. California Blvd [log in to unmask] Pasadena, CA 91125