Reply-To: | | [log in to unmask][log in to unmask]> wrote: > >> > > >> >> Hi AS, > >> >> > >> >> P is a list of file names, either a character array or a cell array > of > >> >> strings. If you're doing one subject by hand use: > >> >> > >> >> P = spm_select(Inf,'image'); > >> >> > >> >> which will open a file dialogue and save the image files you select > as > >> >> variable P. > >> >> > >> >> If you have preprocessed the data, make sure you select only one set > of > >> >> image, with the same prefix. > >> >> > >> >> Once you've done that, typing calc_tsnr(P); should give you an image > >> >> 'tsnr.nii' in the same directory. You will probably need to mask the > >> TSNR > >> >> image with a brain mask, since voxels outside the brain can have very > >> low > >> >> SD and appear to have high TSNR. You can do that using the attached > >> script > >> >> (just type 'brainmask' then select 'tsnr.nii'). It multiplies the > image > >> by > >> >> the canonical SPM brain mask by default. > >> >> > >> >> Paul > >> >> > >> >> > >> >> > >> >> On Wed, 1 May 2013 13:04:46 +0100, A a <[log in to unmask]> wrote: > >> >> > >> >> >Hi Paul, > >> >> > > >> >> >I really appreciate your help. If you do not mind I have a couple of > >> basic > >> >> >questions, I am a matlab beginner. So I think what I need is the > first > >> >> >script, for individual, as this is what I have, a single session for > >> one > >> >> >subject. What I need to modify is the P in the script. So should I > add > >> all > >> >> >the volumes ( the function data together as you get from the > scanner ) > >> ? > >> >> >The only problem that I faced is loading the image in a correct > way. I > >> >> used > >> >> >load_nifti but what I get is a structure file that contains hdr img > >> ..etc. > >> >> >Should I load this one as P? Also when you mentioned modifying the > >> script >¶Vä¢t |