How to draw a 3D surface plot with some disordering points?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jian Shi
el 16 de Abr. de 2019
Comentada: Jian Shi
el 16 de Abr. de 2019
I want to draw a 3D surface with the data in the annex.
x, y, z means the X-axis, Y-axis, Z-axis,respectively.
In fact (x,y) is a mesh of the unit square, but not in order. Thus I don't know how to apply mesh or surface on the data.
0 comentarios
Respuesta aceptada
KSSV
el 16 de Abr. de 2019
load data.mat ;
xi = unique(x) ;
yi = unique(y) ;
[X,Y] = meshgrid(xi,yi) ;
Z = griddata(x,y,z,X,Y) ;
surf(X,Y,Z)
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!