How to draw a surface plot without black edges in MATLAB?

Jader Dias picture Jader Dias · Jan 11, 2009 · Viewed 98.9k times · Source

The black lines are awful, how can I get rid of them? I want only the colored surfaces.

Answer

Azim picture Azim · Jan 11, 2009

Another choice is to set the edgeColor and/or lineStyle properties of the surface handle object to none.

>> hSurf = surf(X,Y,Z,'EdgeColor','none','LineStyle','none','FaceLighting','phong');