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.

 Réponse acceptée

Thorsten
Thorsten le 23 Sep 2015
plot(x,y, '--', 'Color',[0,0.8,0.9]);
or
plot(x,y, 'LineStyle', '--', 'Color',[0,0.8,0.9]);

Plus de réponses (0)

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by