Clear Filters
Clear Filters

how to put long dash as line style in a plot

8 views (last 30 days)
masih
masih on 29 Jan 2016
Answered: Star Strider on 29 Jan 2016
how to put long dash as line style in a plot

Answers (1)

Star Strider
Star Strider on 29 Jan 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

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!