How to set line style and color of a line?
3 次查看(过去 30 天)
显示 更早的评论
I can draw a line with the command line(0,10,5,5), but how to set line style and color?
0 个评论
回答(1 个)
Sean de Wolski
2015-5-28
line([0,10],[5,5],'LineStyle',':','Color','r')
And for more info
doc line
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!