MATLAB: How to get rid of lines on a surf command? Also how to change the surf to green rather than the default gradient colours

colourlinesvisibleulinesvisiblevlinesvisible

I am doing my University dissertation and I want rid of the lines that appear on the surface created by the surf command 'surf(xp,yp,zp)'. I have tried 'LinesVisible = FLASE' but it keeps coming up saying that the '=' is not correct. I also want to turn the surface of this plot to green.
Any help would be amazing. Am not the best on Matlab. I can send my code if that helps anyone.
Thanks Grant

Best Answer

Yes, but you should realize that 'LinesVisible = FLASE' (despite the misspelling of false) is not even standard syntax in MATLAB for property/value pairs. So you might spend some time familiarizing yourself with that syntax.
You might try the property/value pair: 'edgecolor','none'
I think that is the proper one to kill the lines. Or you can be completely lazy, and just do what I do. So use the command
shading interp
which kills off the lines. Of course, it also causes the shading to be smoother, since it is now interpolated.
If you want the surface to be green, you can use a colormap that will give you shades of green.
surf(peaks(20))
colormap summer
shading interp
Or, you can just set the color to be a boring, flat, greenish hue.
h = surf(peaks(50));
set(h,'edgecolor','none','facecolor',[.1 .9 .1])
I would guess that this would usually not make people happy, since it is difficult to visualize the shape. Those edges really do help on a mono-color surface.
set(h,'edgecolor','r','facecolor',[.1 .9 .1])