Ged:
I actually ran your scripts, but not successfully. When I put: system(['sh -c "source ' fslsh '"']); the command windows echoes:
??? system(['sh -c "source ' fslsh '"']);
Error: Unexpected MATLAB expression.
Actually when I put those codes into command window, the last parenthesis and the square brackette are maroon, which means not in correct matlab grammar.
Xuelin
****************************************
Xuelin Cui
Department of Electrical Engineering
University of Hawaii-Manoa
Honolulu HI 96822
Tel: 1-808-349-0983
Email: [log in to unmask]
****************************************
----- Original Message -----
From: Ged Ridgway <[log in to unmask]>
Date: Wednesday, July 4, 2007 7:00 pm
Subject: Re: [FSL] How to find the exact numeric value of those spatial IC maps in MELODIC?
To: [log in to unmask]
> Hi Xuelin,
>
> > I am not quite sure about what did you guys mean by "not correctly
> > setting the envioronmental variable". When I type "echo $FSLDIR",
> > terminal reponse me with the right path.
>
> Good, but maybe within Matlab this is not set. If you start Matlab
> from the same terminal that you did the above, then it should be
> fine.
> But if not, then you'll need to set the environment within Matlab,
> e.g. doing something like:
>
> fslsh = '/my/path/to/fsl/etc/fslconf/fsl.sh';
> system(['sh -c "source ' fslsh '"']);
>
> and maybe test things with something like:
>
> cmd = 'avwstats++ $FSLDIR/etc/standard/avg152T1 -x';
> [stat out] = system(['sh -c "' cmd '"'])
>
> Ged.
>
|