채택된 답변

Stephan
Stephan 2021년 4월 20일
편집: Stephan 2021년 4월 20일

0 개 추천

I guess you know that your picture is not a tan function...
fplot(@tan,[0 7],'LineWidth',2)

댓글 수: 3

Levent Koman
Levent Koman 2021년 4월 20일
I know tan(x) function, but how can I draw my graph?
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일

0 개 추천

syms x
fplot(sin(x)^2,[0 2*pi])

댓글 수: 1

Nice ;-)
syms x
simplify(0.5*sin(2*x-pi/2)+0.5)
ans = 
rewrite(ans,'sin')
ans = 

댓글을 달려면 로그인하십시오.

카테고리

질문:

2021년 4월 20일

댓글:

2021년 4월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by