How to avoid connecting edges when plotting a surface

Hello everyone !
I would like to plot the following surface, but I don't want the surface to fill the space in the gap that you can see in front (that spoils everything to what I want to explain with that figure).
I cannot find any way to solve this... any suggestion ?
Thank you !
My code is the following :
surf(X,Y,unwrap(phi),'FaceColor','yellow','EdgeColor','none')
camlight left;
lighting phong
axis off

Answers (1)

please refer to the solution provided here:
https://www.mathworks.com/matlabcentral/answers/712893-why-surface-plot-is-connecting-its-edges

Asked:

on 19 Feb 2018

Answered:

on 10 Jan 2021

Community Treasure Hunt

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

Start Hunting!