matlab code error help

9 visualizaciones (últimos 30 días)
JINWOO HONG
JINWOO HONG el 6 de Abr. de 2020
Respondida: Srivardhan Gadila el 10 de Abr. de 2020
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 comentario
Srivardhan Gadila
Srivardhan Gadila el 10 de Abr. de 2020
@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.

Iniciar sesión para comentar.

Respuestas (1)

Srivardhan Gadila
Srivardhan Gadila el 10 de Abr. de 2020

Categorías

Más información sobre 수학 en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!