hello, any one can help me to solve this problem , i am new to matlab

7 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2018-11-9
'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

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2018-11-8
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.

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by