Enter input arguments by typing them now?

Hi all
I am have this problem, when click run the prog. the prog. asked me to enter the input argument by typing it?
where I typing them? In the Editor or in the command window?

댓글 수: 3

Geoff Hayes
Geoff Hayes 2014년 5월 28일
What program are you running? Where is the question appearing? If the question appears in the Command Window, then presumably the answer should be entered there.
appearing near the run bottom as comment ,not in the command window.
this is code of the prog.
function A = OSCaROrbit2ProjectionMatrix(theta_G,du,dv,u_off,v_off,SDD,SAD)
%%**************************************************************************
%%System name: Cone-Beam CT Bench
%%Module name: pmhOrbit2PM.m
%%Version number: 1
%%Revision number: 00
%%Revision date: 16-Dec-2003
%%2002 (C) Copyright by Douglas J. Moseley.
Princess Margaret Hospital
Usage: pmhOrbit2PMIMG
Inputs:
Outputs:
Description:
Open an iView3D IMG file into Matlab matrix object
Notes:
%%*************************************************************************
%%References:
%%*************************************************************************
%%Revision History
%%0.100 2003 12 16 DJM Initial version
%%*************************************************************************
%disp('Entering open_IMG');
% Assumption: SAD, SDD, IAD all constants for idealised circular trajectory
theta_G = theta_G(:);
u_off = u_off(:);
v_off = v_off(:);
N_proj = length(theta_G);
%SDD = SAD+IAD;
A = zeros(3,4,N_proj);
alpha = 0; % Skew angle (for non-rectangular pixels)
for k=1:N_proj
% focal length
f = SDD;
C = [ 1/du tan(alpha) u_off(k)
0 1/dv v_off(k)
0 0 1 ] ;
P = [ -f 0 0 0
0 -f 0 0
0 0 1 0 ];
% transformation from world coordinates to imaging coordinates
% Ri = pmhRotationMatrix(90,0,theta_G(k)+180); % for MV which is 90 degrees out of phase
Ri = pmhRotationMatrix(90,0,theta_G(k)+90);
Xs = [ SAD*cosd(theta_G(k)); SAD*sind(theta_G(k)); 0 ];
Tw = [ Ri -Ri*Xs
zeros(1,3) 1 ];
A(:,:,k) = C*P*Tw;
% Normalize Projection distance to image plane
A(:,:,k) = A(:,:,k)./A(3,4,k);
end
return
Geoff Hayes
Geoff Hayes 2014년 5월 28일
Nowhere in the above code is it asking the user for some input. Which line are you referring to, that which is %disp('Entering open_IMG');? If so, I think that the intent of this statement was just to say (at one time) that the software was now entering the function named open_IMG. Though since it is commented out (and there is no function called open_IMG), it no longer has any relevance. And the code doesn't seem to run anyway since pmhRotationMatrix is undefined.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

태그

질문:

2014년 5월 28일

댓글:

2014년 5월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by