MATLAB: How to change the linewidth of contour line in the function “surfc” by code

contourlinewidthsurfc

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

Best 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;
Related Question