How to mark a point on scatter plot obtained using gscatter?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tmat
am 16 Mai 2022
Kommentiert: KALYAN ACHARJYA
am 14 Jun. 2022
I just obtained a scatter plot using gscatter(x,y), where x and y are both data vectors with size 100. Among these 100 points, a point (x*,y*)=(50,50.5) have some particular meaning and I want to highlight this point with a different point style or color. How could I do it?
Thanks!
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 16 Mai 2022
Bearbeitet: KALYAN ACHARJYA
am 16 Mai 2022
Yes you can specify that, see my example (Just for understanding)
x=randi(100,[1,50]);
y=randi(100,[1,50]);
gscatter(x,y);
hold on;
%....................... Group,color,marker,marker size
gscatter(x(1,25),y(1,25),2,'r','x',[10,15]);
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter 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!