How to use the phantom function on MATLAB Version: 8.3.0.532 (R2014a)

조회 수: 8 (최근 30일)
Kaloyan Marinov
Kaloyan Marinov 2014년 8월 12일
댓글: Geoff Hayes 2014년 8월 12일
Dear all,
I am running MATLAB Version: 8.3.0.532 (R2014a). I would like to use the phantom function (which I have been able to use on MATLAB Version: 7.14.0.739 (R2012a) and which is included in the documentation for MATLAB Version: 8.3.0.532 (R2014a)!).
However, when I run
P = phantom('Modified Shepp-Logan', 200);
in the Command Window, I get the following error message:
Undefined function 'phantom' for input arguments of type 'char'.
Moreover, when I run
ph = phantom(256);
in the Command Window, I get the following error message:
Undefined function 'phantom' for input arguments of type 'double'.
Can anyone advise me on how I could get the phantom function (which I have been able to use on MATLAB Version: 7.14.0.739 (R2012a)) running properly on MATLAB Version: 8.3.0.532 (R2014a)?
Thanks in advance,
Kaloyan Marinov
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 8월 12일
The phantom function is part of the Image Processing Toolbox. Do you have it installed?
In the Command Window, type
ver
to see the version of MATLAB and all installed toolboxes. If you don't see a line for the Image Processing Toolbox then it isn't installed. If you do see a line for it, then type
which phantom -all
to locate the path(s) to the phantom function if it exists.
I notice the same error messages as you since I don't have this toolbox.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Medical Physics에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by