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.

 Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

krr
am 23 Sep. 2015

Beantwortet:

am 23 Sep. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by