SPM pre-processing batch error, problem with indexing information.
이전 댓글 표시
Hi all,
I am very new to programming so I apologize if my question is stupid, but I would appreciate any help I can get. I am trying to create a pre-processing batch file for SPM. I based my code on a template from SPM's website, but I cannot get it to index the files properly. Below you can see an image of the files variable named f, as per the template this is a 351x56 char variable containing the names of the files.

This is the code itself, as given by the template (f is the variable that contains the names of the files).

I don't think cellstr(f) works here, because the code does not actually do any realignment at all. This is how the input for spm.spatial.realign.estwrite.data should look like:

Can anyone please advice me on how to edit my code so that the f variable produces the output seen in the image above?
Best, Petya
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Neuroimaging에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!