Plot with dot and different colors
819 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
LOKESH
am 13 Mai 2012
Kommentiert: Alexander Reina Garzon
am 17 Okt. 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 Kommentar
Akzeptierte Antwort
Weitere Antworten (2)
Nadeem Tariq Beigh
am 8 Jun. 2020
Bearbeitet: Nadeem Tariq Beigh
am 8 Jun. 2020
plot(x,y,'ro');//To plot a red circle
plot(x,y,'r.);//To plot ared dot
0 Kommentare
Goutham Saravanan
am 21 Sep. 2021
x = linspace(1*pi,100);
y =
;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/744769/image.png)
plot(x,y,'ro');
xlabel('x')
ylabel('Likelihood ratio for the given conditions')
title('1.2/c')
0 Kommentare
Siehe auch
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!