How to plot this type of function?

1 visualización (últimos 30 días)
Dinh Le Dung
Dinh Le Dung el 3 de Ag. de 2022
Editada: KSSV el 4 de Ag. de 2022
  2 comentarios
Walter Roberson
Walter Roberson el 4 de Ag. de 2022
Strange, I could have sworn I saw someone post code for this involving fplot3()
Dinh Le Dung
Dinh Le Dung el 4 de Ag. de 2022
That was me LOL

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 4 de Ag. de 2022
Editada: KSSV el 4 de Ag. de 2022
t = linspace(-5,5) ;
x = exp(t) ;
y = 1-exp(-t) ;
z = atan2(y,x) ;
plot(t,z)
  3 comentarios
Walter Roberson
Walter Roberson el 4 de Ag. de 2022
Note that atan(y./x) is usually better done as atan2(y, x) . The difference is that atan2() will get the right quadrant.
KSSV
KSSV el 4 de Ag. de 2022
Editada: KSSV el 4 de Ag. de 2022
@Walter Roberson agree.....edited the code.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by