Dear Ali,
I can only guess what might be wrong. For your first try, what would make me wonder is the relative path ".\RawEPI\fM00223\swrfM00223_004.img" to your file. You need either make sure that spm_standalone is in the correct base directory where this path is valid (by running "Change Directory" prior to "Model Specification" in your batch) or use absolute paths to files.
I don't have a clue what is going on in the second case. Just some random thoughts: are you sure it is exactly the same batch, called exactly the same way? Does it open up properly in the batch GUI? Does the script include some other statements than matlabbatch{..}...? If so, are these statements safe to run in deployed mode?
Best,
Volkmar
|