how may i change the marker color
20 次查看(过去 30 天)
显示 更早的评论
plot(frequency(41),value(:,1), LineStyle, 'r')
I am trying to change the color if this plot but I am getting an error.
4 个评论
回答(1 个)
Cris LaPierre
2022-8-24
2 个评论
Cris LaPierre
2022-8-24
Hard to help without seeing the code you have written. Could you share?
x = 0:pi/10:2*pi;
y1 = sin(x);
y2 = sin(x-0.25);
y3 = sin(x-0.5);
figure
plot(x,y1,'g',x,y2,'b--o',x,y3,'c*')
另请参阅
类别
在 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!