How to plot this type of function?

2 件のコメント

Walter Roberson
Walter Roberson 2022 年 8 月 4 日
Strange, I could have sworn I saw someone post code for this involving fplot3()
Dinh Le Dung
Dinh Le Dung 2022 年 8 月 4 日
That was me LOL

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2022 年 8 月 4 日
編集済み: KSSV 2022 年 8 月 4 日

0 投票

t = linspace(-5,5) ;
x = exp(t) ;
y = 1-exp(-t) ;
z = atan2(y,x) ;
plot(t,z)

3 件のコメント

KSSV
KSSV 2022 年 8 月 4 日
syms t
x = exp(t) ;
y = 1-exp(-t) ;
z = atan(y./x) ;
fplot(z)
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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

質問済み:

2022 年 8 月 3 日

編集済み:

2022 年 8 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by