Line Style Specifiers used with Color Specifiers

I assigned the color of the plot using: plot(x,y, 'Color',[0,0.8,0.9]); Now I want the line to be dashed not solid, how do I do that? Trials such as plot(x,y, '--Color',[0,0.8,0.9]); failed.

 Accepted Answer

plot(x,y, '--', 'Color',[0,0.8,0.9]);
or
plot(x,y, 'LineStyle', '--', 'Color',[0,0.8,0.9]);

More Answers (0)

Categories

Products

Tags

Asked:

krr
on 23 Sep 2015

Answered:

on 23 Sep 2015

Community Treasure Hunt

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

Start Hunting!