Surface plot problem with mesh
Mostrar comentarios más antiguos
Hello, I've got a code that solves pde system. As a result I've got matrix with values in different points (coordinate and time layer). Now I'm trying to plot the surface like this
figure
[x1,y1]=meshgrid(time,x);
surf(x1,y1,u(:,:),'EdgeColor','black');
colormap(copper)
set(gca,'linewidth',2)
shading interp;
grid on;
hold on;
where x and time are vectors of coordinate and time points, u is the result matrix. But the surface looks very strange.

How can I add the lines on this surface? Like this

Respuesta aceptada
Más respuestas (2)
Danila Zharenkov
el 10 de Abr. de 2014
1 comentario
Mischa Kim
el 10 de Abr. de 2014
Please add comments as comments, not answers.
Kelly Kearney
el 10 de Abr. de 2014
[x,y,z] = peaks(500);
surf(x,y,z);
shading flat;
wireframe(x,y,z,20);
Categorías
Más información sobre Geometry and Mesh en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
