matlab code error help

10 ビュー (過去 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 Center および File Exchange수학 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!