Try this:
P=str2mat('xxx_seg1.img','xxx_seg2.img'); %xxx needs to be changed
spm_xbrain(P,mode); %mode be an integer value between 1 and 7.
On Wed, 16 Jan 2002, Marko Wilke wrote:
> Dear all,
> I am fiddling around to call spm_xbrain.m from the matlab command line,
> but do not seem to be able to do this... I just want to extract the
> brain, and I think the problem is that the syntax is
>
> % function spm_xbrain(P,mode)
>
> with the P representing two images:
>
> % Inputs:
> % xxx_seg1.img & xxx_seg2.img - grey and white matter segments
> % extracted using spm_segment.
>
> I do not seem to be able to input two files within one argument: I
> either get "too many arguments" or "cannot read file information on
> file1_seg1.imgfile1_seg2.img" ... it's probably extremely easy, but I
> tried quite a few varitions now and would appreciate any clue.
> Thanks !
> Marko
> --
> ===============================================
> Marko Wilke, MD
> Research Fellow, Imaging Research Center
> Children's Hospital Research Foundation
> 3333 Burnet Avenue - ML 5031
> Cincinnati, OH 45229
>
> Phone +1 (513) 636-0142 FAX +1 (513) 636-3754
> [log in to unmask] http://www.irc.chmcc.org
>
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kewei Chen, Ph.D.
Bio-mathematician
Samaritan PET Center
Good Samaritan Regional Medical Center
Visiting Research Associate Professor
ASU Math. Dept.
602-239-4851
[log in to unmask]
[log in to unmask]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
|