How to set line style and color of a line?

3 ビュー (過去 30 日間)
Mr M.
Mr M. 2015 年 5 月 28 日
回答済み: Sean de Wolski 2015 年 5 月 28 日
I can draw a line with the command line(0,10,5,5), but how to set line style and color?

回答 (1 件)

Sean de Wolski
Sean de Wolski 2015 年 5 月 28 日
line([0,10],[5,5],'LineStyle',':','Color','r')
And for more info
doc line

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by