How to change the linewidth of contour line in the function "surfc" by code?

 Accepted Answer

Take the handle of surfc, it will be a matlab graphics object. It will have two arrays one for surface and other for contour. YOu can control the properties using handle.
[X,Y,Z] = peaks(30);
figure
h = surfc(X,Y,Z) ;
h(2).LineWidth = 2;

More Answers (0)

Categories

Asked:

on 7 Jun 2018

Commented:

on 7 Jun 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!