Surface plot problem with mesh
이전 댓글 표시
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

채택된 답변
추가 답변 (2개)
Danila Zharenkov
2014년 4월 10일
댓글 수: 1
Mischa Kim
2014년 4월 10일
Please add comments as comments, not answers.
Kelly Kearney
2014년 4월 10일
[x,y,z] = peaks(500);
surf(x,y,z);
shading flat;
wireframe(x,y,z,20);
카테고리
도움말 센터 및 File Exchange에서 Geometry and Mesh에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
