2D scatter plot with Z-value in color
243 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Saskia
am 30 Jul. 2013
Kommentiert: zhou weiyan
am 3 Aug. 2022
Hi all,
It’s a basic question but I struggle to find the answer on the Internet...
I have a matrix with x,y and z colum, representing the c-coordinate, the y-coordinate and depth (z).
I’d like to plot (x,y) but that those points show a colorscale depending on the depth value (just the point colors I don’t want an interpolation).
Can somebody help me please?
1 Kommentar
Caoimhe Madine
am 31 Mär. 2020
Would anyone be able to tell me how to do this but then interpolate the colours?
Akzeptierte Antwort
Walter Roberson
am 30 Jul. 2013
pointsize = 10;
scatter(x, y, pointsize, z);
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!