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

조회 수: 8 (최근 30일)
Younis Firwana
Younis Firwana 2018년 11월 8일
댓글: Walter Roberson 2018년 11월 9일
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
Younis Firwana
Younis Firwana 2018년 11월 9일
if you have any way to solve this problem so tell me in details, please
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.
  댓글 수: 1
Younis Firwana
Younis Firwana 2018년 11월 9일
if you have any way to solve this problem so tell me in details, please

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Adding custom doc에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by