hello, any one can help me to solve this problem , i am new to matlab
7 views (last 30 days)
Show older comments
setenv('FSLDIR','fslabsolutepath')
>> ASL_GUI
Start ASL processing...
Subjects to process: 1
Processing subject 1:
structural: 'C:\Users\Younis\Documents\research\naser\t1\20181005_091325T1W3DSAGSENSEs1201a1012.nii'
outputStructDir: 'C:\Users\Younis\Documents\research\naser\t1'
CBF: 'C:\Users\Younis\Documents\research\naser\asl singlephase\20181005_091325ASLSinglePhaseLATESENSEs2001a1020.nii'
outputCBFDir: 'C:\Users\Younis\Documents\research\naser\asl singlephase'
T1: 1
usePD: 0
up: 1
ext: '.nii'
betCBF: 1
fCBF: '0.2'
skullStrip: 1
spm: 1
CSF: 1
fsl: 0
fBet_struct: '0.4'
rBet_struct: '75'
norm: 1
apply_pvc: 0
checkreg: 0
smooth: 1
kernel: [5 5 5]
Reorienting structural scan...
'cp' is not recognized as an internal or external command,
operable program or batch file.
'fslabsolutepath' is not recognized as an internal or external command,
operable program or batch file.
Error using spm_vol>spm_vol_hdr (line 80)
File
"C:\Users\Younis\Documents\research\naser\t1\aux20181005_091325T1W3DSAGSENSEs1201a1012.nii"
does not exist.
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in spm_smooth (line 33)
if ischar(P), P = spm_vol(P); end
Error in auto_reorient
Error in runASL
Error in runASL
Error in ASL_GUI
Error in ASL_GUI
Error in ASL_GUI
Error in ASL_GUI
Error while evaluating UIControl Callback.
>>
5 Comments
Walter Roberson
on 9 Nov 2018
'cp' is not recognized as an internal or external command, operable program or batch file.
The code is trying to execute a Mac or Linux command to copy a file. Everything past that could fail because the file is not copied.
As a work around you could locate copy.exe and copy it to cp.exe
Answers (1)
Image Analyst
on 8 Nov 2018
First of all, the variable fslabsolutepath is not defined in your base workspace so that's why setenv() didn't work.
Then the ASL_GUI program didn't work because it couldn't find "C:\Users\Younis\Documents\research\naser\t1\aux20181005_091325T1W3DSAGSENSEs1201a1012.nii". What does this show:
>> filename = 'C:\Users\Younis\Documents\research\naser\t1\aux20181005_091325T1W3DSAGSENSEs1201a1012.nii';
>> fileExists = exist(filename, 'file') % Don't use a semicolon.
See Also
Categories
Find more on Search Path in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!