Plotting exponential periodic function

3 ビュー (過去 30 日間)
Nico Pisani
Nico Pisani 2020 年 10 月 12 日
コメント済み: Nico Pisani 2020 年 10 月 12 日
Hi There!
I'd like to plot the following function with matlab as a theta function
but the graphs looks completely wrong.
What should I do?

回答 (1 件)

Catalytic
Catalytic 2020 年 10 月 12 日
What should you do? You should correct whatever mistake it is you made.
  1 件のコメント
Nico Pisani
Nico Pisani 2020 年 10 月 12 日
There are no code mistakes. Simply the graph is not the one I expect...
Here is what I typed in:
x = linspace(0,2*pi,100);
y = ((1-exp(-1.9./cos(x)))./(1-exp(-1.9))).*cos(x);
plot(x,y)
I

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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by