Plot 3D using center nodes instead of vertices
이전 댓글 표시
When plotting a 3D plot, points are drawn in each mesh vertex, is there any way they can be drawn in the node centre. For example:
if true
[X,Y] = meshgrid(1:5, 1:5);
Z = X .* exp(-X.^2 - Y.^2);
surf(X,Y,Z)
view(2)
end
The plot shows 4x4 nodes because points are drawn in vertices, I would like them to be drawn in the node centre so the figure would show 5x5 nodes. Of course I could add more points in meshgrid function since Z is a know function in the example. But that is not the point, in my real problem, Z is just data, and I would not like to extrapolate.
Thanks for any help.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!