tan(x) graph

23 次查看(过去 30 天)
Levent Koman
Levent Koman 2021-4-20
评论: Stephan 2021-4-20
How to draw this tan(x) graph on matlab.

采纳的回答

Stephan
Stephan 2021-4-20
编辑:Stephan 2021-4-20
I guess you know that your picture is not a tan function...
fplot(@tan,[0 7],'LineWidth',2)
  3 个评论
Stephan
Stephan 2021-4-20
fplot(@(x)0.5*sin(2*x-pi/2)+0.5,[0 2*pi],'LineWidth',2)
xlim([0 7])
Levent Koman
Levent Koman 2021-4-20
thanx for solution

请先登录,再进行评论。

更多回答(1 个)

Walter Roberson
Walter Roberson 2021-4-20
syms x
fplot(sin(x)^2,[0 2*pi])
  1 个评论
Stephan
Stephan 2021-4-20
Nice ;-)
syms x
simplify(0.5*sin(2*x-pi/2)+0.5)
ans = 
rewrite(ans,'sin')
ans = 

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Directed Graphs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by