matlab code error help

9 次查看(过去 30 天)
JINWOO HONG
JINWOO HONG 2020-4-6
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!