Dear SPM experts:
I try to extract all voxels from the SPM table of results and find the AAL and
Brodmann Labels for them using FindAALandBAForSPMResults.m under SPM5. I
got the following error message, pls let me know what I did wrong with it and
how to fix it. Thanks in advance.
>> FindAALandBAForSPMResults(xSPM, hReg)
??? Error using ==> textread
File not found.
Error in ==> FindAALandBAForSPMResults>subfnFindAALandBA at 78
[aalCol1 aalCol2 aalCol3] = textread('C:\Program Files\MRIcro\aal.txt','%d%s%
d');
Error in ==> FindAALandBAForSPMResults at 43
[AALList BAList] = subfnFindAALandBA(XYZmm);
Then I check the command line
>> [aalCol1 aalCol2 aalCol3] = textread('C:\Program Files\MRIcro\aal.txt','%d%
s%d')
It works well below:
>> [aalCol1 aalCol2 aalCol3] = textread('C:\Program Files\MRIcro\aal.txt','%d%
s%d')
aalCol1 =
1
2
3
...
aalCol2 =
'Precentral_L'
'Precentral_R'
'Frontal_Sup_L'
...
aalCol3 =
2001
2002
2101
....
Also I change the path of MRIcro to the follows.
%%%%% Change these before using!! %%%%%%%%%%%%%%%%%%%%
%%%%
Paal = 'C:\Program Files\MRIcro\aal.img';
[aalCol1 aalCol2 aalCol3] = textread('C:\Program Files\MRIcro\aal.txt','%d%s%
d');
Pba = 'C:\Program Files\MRIcro\brodmann.img';
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%
|