Linestyle does not change
21 次查看(过去 30 天)
显示 更早的评论
Hi, am having a trboule with plot and linestyle commands.
Am using the following code
plot(t,r2,'--b');hold on
plot(t,r3,'-.r'); hold on
plot(t,r1,':g'); hold off
But still am having the same linestyle on all curves (--)?
I have tried several ways to go around this problem, but with no luck at all
Thanks
5 个评论
回答(3 个)
Azzi Abdelmalek
2016-8-1
Increase the line width
t=0:0.1:10
r1=sin(t)
r2=2*cos(t)
r3=t
plot(t,r2,'--b');hold on
plot(t,r3,'-.r','linewidth',3); hold on
plot(t,r1,':g','linewidth',3);
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!