Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
x=0:pi/100:2*pi;
y=cos(x);
y2=sinx
plo(x,y2, ':')
why is ':' required?
  3 Commenti
S Priya
S Priya il 21 Ago 2021
Modificato: S Priya il 21 Ago 2021
But plot(x,y2) also shows the results.
Rik
Rik il 21 Ago 2021
Did you perhaps mean plot(x,y2,':')?
If so, read the documentation for the plot function. It will clearly explain what that does.

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 21 Ago 2021
':' is dotted line joining the points.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by