How to stop extraneous lines when using 'mesh'?
이전 댓글 표시
Hi,
I am having problems with the 'mesh' command (see picture below). The command is inserting lines that are not part of the surface under consideration (hyperbolic paraboloid in this case). Is there a way of stopping this happening?
Thanks
Nic

P. S. Interestingly when this is converted to a *.jpeg the extraneous lines disappear.
댓글 수: 1
Star Strider
2014년 3월 19일
Difficult to say without seeing the code you used to generate it.
답변 (2개)
Mischa Kim
2014년 3월 19일
Does this help?
x = -1:0.1:1;
y = -1:0.1:1;
[X,Y] = meshgrid(x,y);
Z = power(Y,2) - power(X,2) - 0.5;
mesh(X,Y,Z)
box
댓글 수: 1
Mischa Kim
2014년 3월 19일
OK. Try to see if changing the renderer does the trick:
set(gcf, 'Renderer', 'OpenGL');
or
set(gcf, 'Renderer', 'zbuffer');
Alternatively, check
set(gcf,'EdgeAlpha',0.99)
Nic Roberts
2014년 3월 19일
편집: Nic Roberts
2014년 3월 19일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Polygons에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!