Hi,
Anyone have idea to take off the lines that connect my both extreme end point when I am using the surf.
Thanks,
Jerome.

 Respuesta aceptada

Star Strider
Star Strider el 23 de Mzo. de 2021
One option would be to use either the sort or unique functions (or their friends) on the x-matrix or vector.
Those usually work in such situations.
One option, instead of using meshgrid with the arguments you provided to it is instead to do:
N = 50;
xv = linspace(min(X), max(X), N);
yv = linspace(min(Y), max(Y), N);
[xi,yi] = meshgrid(xv, yv);
That may also eliminate the problem.
Choose ‘N’ to provide the resolution you want in the plot.

2 comentarios

Teoh Jun Chang
Teoh Jun Chang el 23 de Mzo. de 2021
Thank you!
Star Strider
Star Strider el 23 de Mzo. de 2021
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 23 de Mzo. de 2021

Comentada:

el 23 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by