Alle,
That got me much farther than before. However, at plank 63 of 68, I
got the error below. Any sense of what's going on now?
David K.
*********
Plane 63/68 , plank 2/2 :
...read & mask data??? Cant map image file.
Error in ==> C:\Program Files\spm99\spm_sample_vol.dll
Error in ==> C:\Program Files\spm99\spm_spm.m
On line 694 ==> CrLm(CrLm) = spm_sample_vol(xM.VM(i),...
??? Error while evaluating uicontrol Callback.
**********
> -----Original Message-----
> From: Alle Meije Wink [mailto:[log in to unmask]]
> Sent: Wednesday, October 22, 2003 4:55 PM
> To: Kareken, David A.
> Cc: SPM Mailing List
> Subject: Re: Help for Explicit Masking in fMRI for SPM99
>
>
> Hi David,
>
> I'm by no means sure that this works, but try
> xM.TH(1:end)= -Inf
> instead of
> xM.TH= -Inf
>
> Because the error has to do with indices, I think xM.TH
> should remain an [nscans 1] array.
>
> Cheers,
> Alle Meije Wink
>
> On Wed, 2003-10-22 at 23:08, David Kareken wrote:
> > I found an older message from Stefan Keibel about doing explicit
> > masking in fMRI models in SPM99, but need some help with it (please
> > respond directly to [log in to unmask], as I don't get the sent to
> > me). Specifically, he
> > wrote:
> >
> > ********
> > With fMRI data/models, SPM99 is fully capable of doing explicit
> > masking, but the user interface for fMRI doesn't ask for
> it. One way
> > to do this type of masking anyway is to specify your model, choose
> > 'estimate later' and modify (in matlab) the resulting
> SPMcfg.mat file.
> > (see spm_spm.m lines 27 - 39 and 688 - 713). Load the
> SPMcfg.mat file,
> > set the xM.TH values all to -Inf, set xM.I to 0 (in case
> that you have
> > an image format not allowing NaN). Set xM.VM to a vector of
> > structures, where each structure element is the output of
> spm_vol. For
> > instance: xM.VM = spm_vol('Maskimage'); Finally, save by
> > save SPMcfg xM -append
> > ********
> >
> > Thus, I assume that the following goes into matlab:
> >
> > clear
> > load SPMcfg.mat
> > xM.TH= -Inf
> > xM.I= 0
> > xM.VM= spm_vol('Maskimage')
> > save SPMcfg xM -append
> >
> > where 'Maskimage' is the actual filename of the mask volume.
> >
> > However, in typing these commands we get the error report
> below. What
> > are we missing? We're not at all sophisticted with Matlab, so I
> > assume that we may be missing some basic syntax implied above.
> >
> > Thanks.
> > David K.
> >
> >
> > ***
> > Plane 1/68 , plank
> > 1/2 :
> ...read & mask
> > data??? Index exceeds matrix dimensions.
> >
> > Error in ==> C:\Program Files\spm99\spm_spm.m
> > On line 705 ==> CrLm(CrLm) = Y(i,CrLm) > xM.TH(i,1); %-
> > Threshold (& NaN) mask
> >
> > ??? Error while evaluating uicontrol Callback.
> > ***
>
> --
>
> Alle Meije Wink
>
> Institute for Mathematics and Computing Science
> University of Groningen
>
> P.O. Box 800 9700 AV Groningen
> Telephone: +31 50 363 71 27 Fax: +31 50 363 38 00
> E-mail: [log in to unmask] WWW: http://www.cs.rug.nl/~wink
>
> "Blind faith in your leaders, or in anything, will get you killed."
> - Bruce Springsteen, "War," Live 1975-85
>
>
|