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

11 ビュー (過去 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 Center および File ExchangeSearch Path についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by