matlab code error help

조회 수: 9 (최근 30일)
JINWOO HONG
JINWOO HONG 2020년 4월 6일
답변: Srivardhan Gadila 2020년 4월 10일
x = r*cospi*cos(theta);
y = r*cospi*sin(theta);
z = r*sinpi;
r = sqrt(x^2+y^2+z^2);
theta = atan*(y/x);
pi = atan*(z/sqrt(x^2+y^2));
'r' is an unrecognized function or variable.
can you tell me how can write r?
  댓글 수: 1
Srivardhan Gadila
Srivardhan Gadila 2020년 4월 10일
@JINWOO HONG, can you state the exact problem or issue?
Clearly you haven't defined the variables r and theta and you are using them in the first three equations.

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

답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2020년 4월 10일

카테고리

Help CenterFile Exchange에서 수학에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!