2D scatter plot with Z-value in color

241 次查看(过去 30 天)
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 个评论
Caoimhe Madine
Caoimhe Madine 2020-3-31
Would anyone be able to tell me how to do this but then interpolate the colours?

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2013-7-30
pointsize = 10;
scatter(x, y, pointsize, z);
  10 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by