Plot 3D using center nodes instead of vertices
Mostrar comentarios más antiguos
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.
Respuestas (0)
Categorías
Más información sobre Surface and Mesh Plots 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!