Hello Amber,
This looks like a path error in matlab - it is looking for the fsl configuration in /etc/fslconf/fsl.sh and not $FSLDIR/etc/fslconf/fsl.sh ( in your case $FSLDIR should be /usr/local/fsl ). Can you check if the matlab has your FSLDIR environment variable set correctly?
Kind Regards
Matthew
> Dear sir/ms,
>
> I am trying to run a script in matlab containing "read_avw" however, every time I try to run the script it gives me this error message:
> sh: /etc/fslconf/fsl.sh: No such file or directory
> ??? Error using ==> fread
> Invalid file identifier. Use fopen to generate a valid file identifier.
>
> Error in ==> read_avw_hdr at 17
> testval = fread(fid,1,'int32');
>
> Error in ==> read_avw at 52
> [dims,scales,bpp,endian,datatype]= read_avw_hdr(tmpname);
>
> Error in ==> MDD_01a_oneg_ffx at 12
> mask = read_avw([whereIsToolbox 'avg152T1_brain.nii.gz']);
>
> I am running FSL on a MAC OS X 10.7.3. The path is set to '/usr/local/fsl/etc/matlab' but the script I am using is in a different folder/path. I have set the path in matlab to where my script is located and my script also has a line that adds a path to '/usr/local/fsl/etc/matlab'.
>
> Do I need to put the matlab script in the same folder or set a path differently or is there a problem with FSL?
>
> Thanks so much for your help!!
> Amber
>
|