I have the following code that overlays a scatter plot on a surface.
Notice that some of the rounded points are chopped off.
figurescatter(rand(20,1)*10,... rand(20,1)*20,... 'o', 'LineWidth',5, ... 'MarkerFaceColor', 'black', ... 'MarkerEdgeColor', 'black')hold on[X,Y] = meshgrid(1:0.5:10,1:20);Z = sin(X) + cos(Y);surf(X,Y,Z)view(2)axis equal square;
Here is the output:
Best Answer