Plotting exponential periodic function

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 个评论

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

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

标签

提问:

2020-10-12

评论:

2020-10-12

Community Treasure Hunt

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

Start Hunting!

Translated by