Plot with dot and different colors
显示 更早的评论
I am using plot function where i need dots.Also I want to change colors?How can I do it.
plot(x,y,'.');
Above function plot the dots but how I change the dots color red or green,etc The following doesn't work:
plot(x,y,'.','r:');
Suggest any answer or solution..
1 个评论
Alexander Reina Garzon
2022-10-17
plot(x,y,'r.')
plot(x,y,'o')
plot(x,y,'m')
采纳的回答
更多回答(2 个)
Nadeem Tariq Beigh
2020-6-8
编辑:Nadeem Tariq Beigh
2020-6-8
1 个投票
plot(x,y,'ro');//To plot a red circle
plot(x,y,'r.);//To plot ared dot
Goutham Saravanan
2021-9-21
0 个投票
x = linspace(1*pi,100);
y =
;
plot(x,y,'ro');
xlabel('x')
ylabel('Likelihood ratio for the given conditions')
title('1.2/c')
类别
在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!