Once you figure out how to specify the parameters , it's not hard to program a loop to walk through all the subjects. Tony From: Shashwath Meda [mailto:[log in to unmask]] Sent: Friday, January 14, 2011 2:30 PM To: Jiang, Zhiguo Cc: [log in to unmask] Subject: Re: [SPM] dcm2nii script Hi Jiang - I actually plan to use this to convert some PAR/REC files. I just was curious to see if there was a script floating around to have this done on multiple subjects as a batch. On Fri, Jan 14, 2011 at 4:25 PM, Jiang, Zhiguo <[log in to unmask]<mailto:[log in to unmask]>> wrote: SPM actually calls two function to have the job done. First, extract the dicom header, then convert them. hdr=spm_dicom_headers(strvcat(P)); spm_dicom_convert(hdr,'all',root_dir,convert_format); Read the source code for the usage of parameters. Hope that helps. Tony From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]<mailto:[log in to unmask]>] On Behalf Of Shashwath Meda Sent: Friday, January 14, 2011 1:25 PM To: [log in to unmask]<mailto:[log in to unmask]> Subject: [SPM] dcm2nii script Hi - Would anyone happen to have a matlab script invoking the dcm2nii function for multiple subjects? Thanks! -- with regards, Shashwath meda *********************************************** Imaging Genetics Analyst III 515-F Light Hall Vanderbilt University Medical Center Cell: (313) 505-6847 Off: (615) 875-3086 *********************************************** ________________________________ IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer. -- with regards, Shashwath meda *********************************************** Imaging Genetics Analyst III 515-F Light Hall Vanderbilt University Medical Center Cell: (313) 505-6847 Off: (615) 875-3086 *********************************************** ________________________________ IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer.