What is the use of plot(x, y, ':') while plotting the graph?

3 vues (au cours des 30 derniers jours)
S Priya
S Priya le 21 Août 2021
x=0:pi/100:2*pi;
y=cos(x);
y2=sinx
plo(x,y2, ':')
why is ':' required?
  3 commentaires
S Priya
S Priya le 21 Août 2021
Modifié(e) : S Priya le 21 Août 2021
But plot(x,y2) also shows the results.
Rik
Rik le 21 Août 2021
Did you perhaps mean plot(x,y2,':')?
If so, read the documentation for the plot function. It will clearly explain what that does.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 21 Août 2021
':' is dotted line joining the points.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by