plot/scatter with marker size and color
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mohamed elgohary
am 27 Mär. 2018
Kommentiert: mohamed elgohary
am 27 Mär. 2018
hello i need some help as example i have x=1:10 y=1:10 value=1:10
scatter(x,y,value)
so I need to add marker color as it varies depending on the ( value) i tried some codes but it doesn't work
0 Kommentare
Akzeptierte Antwort
Birdman
am 27 Mär. 2018
For different color, type
x=1:10;y=1:10;
value=linspace(1,10,length(x));
scatter(x,y,[],value)
To add diamond marker, type
scatter(x,y,[],value,'d')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D 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!