Ask an expert. Trust the answer.

Your academic and career questions answered by verified experts

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

Date: 2022-06-28 11:11:52

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

Answers: 

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');

This is a more general solution, you can change the edgeColor after the surface has been created too. It does not rely on LineStyle and FaceLighting.


Why Matlabhelpers ?

Our Matlab assignment helpers for online MATLAB assignment help service take utmost care of your assignments by keeping the codes simple yet of high-quality. We offer the most reliable MATLAB solutions to students pursuing their Computer Science course from the Monash University, the University of Sydney, the University of New South Wales, the University of Melbourne; to name a few. Approach us today for best Matlab solutions online!

whatsApp order on matlabhelpers.com

telegram order on matlabsolutions.com