Selective colouring of points in a matlab surface plot
Ältere Kommentare anzeigen
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?
Antworten (1)
per isakson
am 1 Dez. 2012
Bearbeitet: per isakson
am 1 Dez. 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".
Kategorien
Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!