Linestyle does not change
12 ビュー (過去 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 (--)?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155334/image.png)
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!