MATLAB: Rank the point in scatter3d figure with different color

colorrankscatter3

Dear everyone,
I want to draw a figure with 3-d data (x,y,values),and I want to rank the values then the different ranks value are with different color as you can see from figure2.
Anyone know the answer?Thanks in advance.
Hong Cheng

Best Answer

Now I have find a easy and beautiful method to do this
scatter3(locationX,locationY,RSSValue, 'CData',RSSValue);
just with 'CData',RSSValue parameters, we can do this