tan(x) graph

8 vues (au cours des 30 derniers jours)
Levent Koman
Levent Koman le 20 Avr 2021
Commenté : Stephan le 20 Avr 2021
How to draw this tan(x) graph on matlab.

Réponse acceptée

Stephan
Stephan le 20 Avr 2021
Modifié(e) : Stephan le 20 Avr 2021
I guess you know that your picture is not a tan function...
fplot(@tan,[0 7],'LineWidth',2)
  3 commentaires
Stephan
Stephan le 20 Avr 2021
fplot(@(x)0.5*sin(2*x-pi/2)+0.5,[0 2*pi],'LineWidth',2)
xlim([0 7])
Levent Koman
Levent Koman le 20 Avr 2021
thanx for solution

Connectez-vous pour commenter.

Plus de réponses (1)

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

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by