Selective colouring of points in a matlab surface plot
Show older comments
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?
Answers (1)
per isakson
on 1 Dec 2012
Edited: per isakson
on 1 Dec 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".
Categories
Find more on Color and Styling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!