tan(x) graph

조회 수: 20 (최근 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