Scatter points with a colormap based on distances
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Francesca Danielli
el 2 de Oct. de 2022
Comentada: KSSV
el 2 de Oct. de 2022
Hi! I have a first set of N points (each of them is identified by the three coordinates) and I have projected them on a plane (identified by a,b,c,d parameters). For each point, I calculated the distance from the plane and the coordinates of the point projected on the plane. Now I'd like to plot (scatter) the projected points on the plane according to a color map that accounts for the calculated distance..any suggestion? Thank you!
0 comentarios
Respuesta aceptada
KSSV
el 2 de Oct. de 2022
x = rand(10,1) ;
y = rand(10,1) ;
z = rand(10,1) ;
d = rand(10,1) ;
scatter3(x,y,z,[],d,'filled')
colormap(jet)
colorbar
3 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Colormaps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!