Thanks for your attention first :). I just wonder that is there any mistake at my codes? I posted my codes but if you want i can post it in one piece. One more question can i use pre-processed data created by SPM ? How can i turn it into AFNI format? When i tried that, it created separate datasets from every volume. Sorry for my questions but i am new at neuroscience and AFNI and i have nobody to ask AFNI. My researcher friends and consultant researcher are using other packages. Please help me. i am stucked here.
Best regards
Abdullah