how to put long dash as line style in a plot

4 visualizaciones (últimos 30 días)
masih
masih el 29 de En. de 2016
Respondida: Star Strider el 29 de En. de 2016
how to put long dash as line style in a plot

Respuestas (1)

Star Strider
Star Strider el 29 de En. de 2016
Different plots sometimes require different specifications for 'LineStyle' and 'Marker'.
The long dash is the '--' 'LineStyle'.
For example:
x = linspace(0, 2*pi, 250);
y = sin(x);
figure(1)
plot(x, y, '--')
grid

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by