How to plot this type of function?

1 次查看(过去 30 天)
Dinh Le Dung
Dinh Le Dung 2022-8-3
编辑: KSSV 2022-8-4
  2 个评论
Walter Roberson
Walter Roberson 2022-8-4
Strange, I could have sworn I saw someone post code for this involving fplot3()

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2022-8-4
编辑:KSSV 2022-8-4
t = linspace(-5,5) ;
x = exp(t) ;
y = 1-exp(-t) ;
z = atan2(y,x) ;
plot(t,z)
  3 个评论
Walter Roberson
Walter Roberson 2022-8-4
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 2022-8-4
编辑:KSSV 2022-8-4
@Walter Roberson agree.....edited the code.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by