Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: How to draw markers on a 2-D colormap plot?

$
0
0
You are using surf, I would not consider that to be a 2D plot.

Please give the following a try and you will probably see that it works.'

Best.

Xcond = X(DATA<0.5);
Ycond = Y(DATA<0.5);
Zcond = DATA(DATA<0.5);

surf(X,Y,DATA)
hold on
plot3(Xcond,Ycond,Zcond,'*')

Viewing all articles
Browse latest Browse all 19628

Latest Images

Trending Articles



Latest Images