Why does appear in a 3D mesh plot lines that should not be there?
Show older comments
Following the first example in the mesh documentation:
figure;
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
mesh(Z);
It should appear this:

But when I run the code, it appears other lines that are not in the example. I do not know why this is happening.

The funny thing is that if I copy the figure using Edit/Copy Figure it copies the image without those lines. Pretty strange.
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Performance 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!