Dear FSLers,
I have a question about read_avw.m (& may be save_avw.m ).
The 'read_avw.m' file use both 'fslmaths' and 'tempname' which is a matlab function.
I wonder a problem is here.
While 'tempname' generate a text including '/' such as '/tmp/tpcf89a366_db3e_4d3f_b8b4_4b9eae69b5b5',
'fslmaths' may not deal with '/' like below.
> fslmaths bu.nii.gz /tmp/tpcf89a366_db3e_4d3f_b8b4_4b9eae69b5b5
( corresponding to a script which is 'command = sprintf('FSLOUTPUTTYPE=NIFTI_PAIR; export FSLOUTPUTTYPE; $FSLDIR/bin/fslmaths %s %s', fname, tmpname)' in read_avw.m )
The above fslmaths command can not /tmp/tpcf89a366_db3e_4d3f_b8b4_4b9eae69b5b5.hdr & *.img
Also, 'call_fsl(command)' command in read_avw.m does not work.
I wonder that's why I got error messages like below when I use read_avw.m, :
Error using fread
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in read_avw_hdr (line 21)
testval = fread(fid,1,'int32')
B. Jeong
|