Selective colouring of points in a matlab surface plot
Mostrar comentarios más antiguos
I have to visualize results form a an algorithm, for this, i am using a surface plot (surf function). what i need is specific points which fulfil a certain criteria in a different colour, but preserving the other points and their colours the way they already are.
is there any way to color the selected points?
Respuestas (1)
per isakson
el 1 de Dic. de 2012
Editada: per isakson
el 1 de Dic. de 2012
That depends on the character of "certain criteria", CC.
If CC depends only on Z it is possible with
... 'CDataMapping','direct' ...
If CC depends on x and y I guess the best way is to add graphic objects on top of the surface, e.g. line objects with "LineStyle , 'none'" and an appropriate "Marker".
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!