Plotting exponential periodic function

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 2-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