Hello,
Can you please insert the following line, just before the diary command
starts.
This problem is apparently due to the '>' character in your contrats name,
which cannot be used as a file name character on your machine. However, i
dont get any such error on my linux machine.
P=spm_str_manip(P,'sdv');
Hope this helps
-prasad
"Michael A. Yassa, B.A." wrote:
> Dear Krishna,
>
> I tried to use your matlab script, and I received the following error:
>
> ----------------
> ??? Error using ==> run
> Error using ==> diary
> table_Assoc_>_nonAssoc..txt: Can't open file.
>
> Error in ==> c:\spm99\spm99\spm.m
> On line 1182 ==> evalin('base',CBs{v-1})
>
> ??? Error while evaluating uicontrol Callback.
> ----------------
>
> not sure what I'm doing wrong here.
>
> Thanks
> Mike
>
> -----Original Message-----
> From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]]
> On Behalf Of Krishna Prasad
> Sent: Friday, August 08, 2003 3:23 AM
> To: [log in to unmask]
> Subject: Re: Coodinate
>
> Hello,
>
> You can type the following command in matlab to extract the table of
> SPM.
>
> TabDat=spm_list('List',SPM,VOL,[0],[Inf],SPM.title,hReg)
>
> and send it to text file.
> after you run the results GUI in SPM
> >> TabDat=spm_list('List',SPM,VOL,[0],[Inf],SPM.title,hReg)
> >> diary table.txt
> >> diary on
> >> spm_list('txtList',TabDat,3)
> >> diary off
>
> This could also be done by right clicking in the table area of spm and
> say print text table. The command line option offers you to select all
> the local maxima, where as by default you can see atmost only 3 local
> maxima separated by 8 mm apart. In Excel, During the process of
> importing this text file ... go to the last column where you can find
> the x,y,z coordinates and change the format of those cells to text
> instead of general. Otherwise excel treats them in a strange way!!!
>
> Please check the attached script which will be simple to use. It creates
> three text files .. table_*.txt is the SPM table, SPMcoords*.txt is what
> you are looking for and talCoords*.txt is the mni2tal converted
> coordinate list.
>
> Please send any questions to [log in to unmask] with a cc to
> [log in to unmask]
>
> Jason steffener has some scripts that extract all voxels that are
> activated (available as SPM.XYZmm matlab variable) including conversion
> from mni2tal.
>
> Hope this helps
> Best
> - prasad
>
> ========================================================
> M .Krishna Prasad M.Tech AI
> Pammi VS Chandrasekhar PhD CS
> our advisor: Dr. S. Bapi Raju
> Department of Computer and Information sciences
> University of Hyderabad, India
> ========================================================
>
> Takefumi Ueno wrote:
>
> > Hello SPM experts,
> >
> > I'd like to have the data of result of SPM analysis to handle the data
>
> > easily.(Now I'm typing the coodinates in excel sheets) Briefly, I want
>
> > to have coodinates (and T value) of volume analysis which is in the
> > graphical window of result. Is it in the matrix of SPM.mat in the
> > workspace? Or needed to calculate or edit SPM.mat?
> > In the workspace, there are matrixes which can be edited and can not.
> >
> > Does someone help me(Matlab beginner) to get the data of analysis?
> >
> > Best,
> > ueno
|