linewidth for specific line
显示 更早的评论
how to specify linewidth for one line in a multi line plot?
1 个评论
Ahmer Ashraf
2020-2-23
I'm bound on linewidth property..I'm completing my assignment but this property is not going me forward.
采纳的回答
更多回答(1 个)
Star Strider
2017-1-6
Use the hold function and plot them individually:
x = 1:10;
y1 = rand(1, 10);
y2 = 1+rand(1,10);
figure(1)
plot(x, y1)
hold on
plot(x, y2, 'LineWidth',2)
hold off
grid
2 个评论
Noam
2017-1-6
Star Strider
2017-1-6
My pleasure.
If my Answer solved your problem, please Accept it!
类别
在 帮助中心 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
