Plot with dot and different colors
371 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
LOKESH
el 13 de Mayo de 2012
Comentada: Alexander Reina Garzon
el 17 de Oct. de 2022
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 comentario
Respuesta aceptada
Walter Roberson
el 13 de Mayo de 2012
plot(x,y,'r.')
You may wish to consider using scatter()
0 comentarios
Más respuestas (2)
Nadeem Tariq Beigh
el 8 de Jun. de 2020
Editada: Nadeem Tariq Beigh
el 8 de Jun. de 2020
plot(x,y,'ro');//To plot a red circle
plot(x,y,'r.);//To plot ared dot
0 comentarios
Goutham Saravanan
el 21 de Sept. de 2021
x = linspace(1*pi,100);
y =
;

plot(x,y,'ro');
xlabel('x')
ylabel('Likelihood ratio for the given conditions')
title('1.2/c')
0 comentarios
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!